');
for(var i = 0; i '+obj[i]+'Getting Value in Select Box
We might need to know what the current value of the option selected is.
[js]
//#selectbox is the id of the select box
jQuery('#selectbox option:selected').val();
[code lang="js"]
You can get the text of the option by doing this.

Remove Element in Select Box

There is nothing special here. Just paste this code and modify it, so the item that will be removed is what you’ve chosen.

jQuery('#selectbox: selected').remove();
Here we will remove all elements except the first and last one.
//#selectbox is the id of the select box
$("#selectbox option:not(option:first, option:last)").remove();