Global nativeMenu not working in a3
I could be Doing It Wrong, but I can't get the code from the docs to work:
$(document).bind('mobileinit',function(){
$.mobile.selectmenu.prototype.options.nativeMenu = true;
});
The per-select data-native-menu="true"
works just fine.
As per the docs, the above code sits between the jquery and jquerymobile loads:
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script>
- <script type="text/javascript">
- $(document).bind('mobileinit',function(){
- $.mobile.selectmenu.prototype.options.nativeMenu = true;
- });
- </script>
- <script type="text/javascript" src="http://code.jquery.com/mobile/1.0a3/jquery.mobile-1.0a3.min.js"></script>
The resulting error is $.mobile.selectmenu is undefined