Thursday, January 6, 2011

JQuery-Create Dropdown from Array

$.each(myArray,function(i,j){
$("<option value=" +i+ ">" +j+ "</option>").appendTo('#ddname');
});

No comments:

Post a Comment