javascript - onclick div open selectmenu in jquery mobile -


i have issue regarding jqm selectmenu widget, doing opening select menus on container in contained.

fiddle demo:- http://jsfiddle.net/4ckae/1/

my html:-

<div class="container" onclick="$('#select-choice-7').selectmenu('open');">     <label for="select-choice-7" class="select">select, native menu3</label>     <select name="select-choice-7" id="select-choice-7" data-native-menu="false">         <option value="standard">standard: 7 day</option>         <option value="rush">rush: 3 days</option>         <option value="express">express: next day</option>         <option value="overnight">overnight</option>     </select> </div> 

i trying open selectmenu through inline jquery onclick="$('#select-choice-7').selectmenu('open');" shows some weird errors in firebug console.

console says:-

firebug console

too recusion 

my firefox v19 shows error on console , chrome unfortunately crashes...

what doing wrong?

you should not include <select> in onclick element, make forever loop, working demo

updated: http://jsfiddle.net/4ckae/6/

<label for="select-choice-7" class="select" onclick="$('#select-choice-7').selectmenu('open');">select, native menu3</label> 

or may checking fix it


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -