Home  >  Article  >  Web Front-end  >  Example learning of DOM operations and events in jquery Drop-down box application_jquery

Example learning of DOM operations and events in jquery Drop-down box application_jquery

WBOY
WBOYOriginal
2016-05-16 17:58:50979browse

Today's demo is about drop-down boxes.

Copy code The code is as follows:




Select to add to the right>>
Add all to the right>>






The function implemented is to add the selected option on the left to the right, double-click an option on the left Options can also be added to the right. Click the Add All to Right button to add all the left to the right.
jquery code:
Copy code The code is as follows:



dblclick() It is triggered when the mouse double-clicks the event.
Other methods and events have been introduced in previous examples, so I won’t go into details here.
This demo code is simple. And the function is indeed practical.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn