Home > Article > Web Front-end > Implementation code for operating HTML controls under jquery_jquery
Operation drop-down box [Select]
1. $("#seelctId").append("");//Add option to the drop-down box (ddlSayTo This is ID of the drop-down box)
$("#seelctId").val(optionval);//Select the option just added
2. $("#seelctId option:selected"). text();//Get the text value of the currently selected option
$("#seelctId").val();//Get the option value of the currently selected option