i want to sort the drop down items using javascript,can anyone tell me how to do this.
You could use jQuery and something like this:
$("#id").html($("#id option").sort(function (a, b) { return a.text == b.text ? 0 : a.text < b.text ? -1 : 1 }))
But it's probably better to ask why and what you're trying to accomplish.