I’m trying to do a page where the user can add youtube links and the page will display them, but it doesn’t work for some reason, here is my javascript code: function addlink() { var youtubelink = prompt("add your youtube link"); if ((youtubelink != null)&& (youtubelink.includes("https://www.youtube.com/watch?v"))) { document.getElementById("video").src= youtubelink; } else{ document.getElementById("demo").innerHTML = "please introduce ..

Read more

I have used react-native-dropdown-picker to show multiple dropdown based on Button click. The dropdown showing as overlay on another component and i can’t able to pick items. Anyone can help to fix the problem? Example code: import * as React from ‘react’; import {View, Text, ScrollView, StyleSheet} from ‘react-native’; import DropDownPicker from ‘react-native-dropdown-picker’; import {Button, ..

Read more

code: <html> <body> <p>how many questions?<input type="text" id="questions"></p> <button onclick="check()"> ok </button> <div id = ‘div’> </div> <script> var text1 let count = 0; var text1 = document.getElementById(‘questions’).value; function check(){ count = count + 1 if (count === text1){ alert(correct + ‘/’ + text1); } } </script> </body> </html> This simple code is supposed to ..

Read more

I’m not sure exactly what’s going on, calendar.render() stops the page from loading and it just hangs. Anyone experience this before, is it an issue with the order imports are happening? calendar.js import { Calendar } from ‘@fullcalendar/core’ import dayGrid from ‘@fullcalendar/daygrid’ import intertaction from ‘@fullcalendar/interaction’ document.addEventListener(‘DOMContentLoaded’, function () { const calendarEl = document.getElementById(‘calendar’) const ..

Read more

I am trying to incorporate AG-Grid in my Angular app. I am using the defaultColDef which provides a lot of filter option namely: contains, not contains, starts with, ends with, equals, and not equals. I only need three which are starts with, equals, and contains. <div *ngIf="tableOption"> <ag-grid-angular class="ag-theme-alpine" id="ag-grid" [pagination]="true" paginationPageSize = 10 [rowData]="rowData" ..

Read more

Here I have blazor server app, I have two <select> cascading dropdown where on change of <select class="form-control classId select2" @bind="chapterModel.SchClassId"> dropdown I want list of subject based on selected <select class="form-control classId select2" @bind="chapterModel.SchClassId"> dropdown in another dropdown<select class="form-control subject select2" @bind="chapterModel.subjectId">. Since I am using select2 dropdown I have Js onchangefunction for dropdown ..

Read more