El-salmo 3likom wa ra7mat ALLAH we Barakatoh,
Dear,
another Solution:
you can add "faizan" to the list
var list =["haider","faisal","adnan","kami","asad"]
function addOption(Obj)
{
$('#listBox').html("");
list.push(Obj);
var handles = list.sort();
var options = '';
for (var i = 0; i < handles.length; i ++) {
options += '<option value="' + handles[i] + '">' + handles[i] + '</option>';
}
$('#listBox').html(options);
all you have to do :
call the function --> addOption("faizan");
Best Regards:
Ahmed Assaf
eBusiness Developer