开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜