Global nativeMenu not working in a3

Global nativeMenu not working in a3

I could be Doing It Wrong, but I can't get the code from the docs to work:

  1. $(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:

  1. <script type="text/javascript" src="http://code.jquery.com/jquery-1.5.min.js"></script>
  2.     <script type="text/javascript">
  3.         $(document).bind('mobileinit',function(){
  4.             $.mobile.selectmenu.prototype.options.nativeMenu = true;
  5.         });
  6.     </script>
  7.     <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







    • Topic Participants

    • rick