Line: 2 Error: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
$(function () {$("#dialog").dialog({ autoOpen: false }); var node = document.createTextNode("Lediga tider att boka"); var para = document.createElement("p"); var selectList = document.createElement("select"); var element = document.getElementById("textresultfree"); while (element.hasChildNodes()) { element.removeChild(element.firstChild); } var myDiv = document.getElementById("myDivResult"); while (myDiv.hasChildNodes()) { myDiv.removeChild(myDiv.firstChild); } para.appendChild(node); element.appendChild(para); myDiv.appendChild(selectList); $("#dialog").dialog("open"); var free = ""; for (var j = 0; j < bookedFreeTimes.length; j++) { free = bookedFreeTimes[j]; var array = new Array(free); for (var k = 0; k < array.length; k++) { var option = document.createElement("option"); option.text = array[k]; selectList.appendChild(option); } } } ); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)