I want to display all the department names in the Dept table in the combo box. I have a function that retrieves the entire Dept name. How can I dynamically create a combo box at runtime using javaScript or jQuery.
HTML code
<select id="searchDepartments"> </select> <input type="button" value="Search" onClick="search();" />
Javascript function
function getDepartments(){ EmployeeManagement.getDeptList(function(deptList/*contains n-(dept.id, dept.name)*/{ for(i = 0; i<deptList.length; i++){
How can I write code that generates (adds) parameters to the list?
user405398
source share