how button click event works in combobox?
I am trying to dynamically append options开发者_C百科 in a combo box.
How does button click event work in a combo box element? I am using change event. But I need button click event in the combo box. How can I 'uniquify' the combo box element in jquery?
You are doing it wrong, add a button to add options to a combo box.
OR, add a default option like:
<option value="default">Make a choice...</option>
Then if a user cancels the dialog box, change the selected option on the combo box to default
. So, when they want to add another option, they will have to click on the drop down box to choose the - add -
option again.
精彩评论