Article Introduction: This article gives us a deep understanding of the jquery Mobile Selectmenu plugin. |
This article gives us a deep understanding of the jquery mobile Selectmenu plugin
The main to familiarize people with the dynamic create Selectmenu, disable Selectmenu, and enable Selectmenu
1. Dynamically Create input
Example:
Dynamically create $ ("#dynamic_selectmenu"). Bind (' click ', Function () { //Once Oh if ($ ("#your_choice_new"). Length < 1) { var arr = ["", "jquery ", " tangram ", " qwrap ", " < Option>kissy ", " YUI ", " JK " , "prototype", "" ]; INSERT into the DOM $ (Arr.join ("")). InsertAfter ("#test_checkbox"); You can set the subject: $ ("#your_choice_new"). Selectmenu ({ theme: "E" });
2, disable (disabled)
Example:
Disable $ ("#disable_selectmenu"). Bind (' click ', function () {
3, enable (enabled)
Example:
Enable $ ("#enable_selectmenu"). Bind (' click ', function () {
Demo