public.mtm (3) [Avatar] Offline
Using the code from the book, the CSS styling does not affect the width of the selectmenu.

      <!-- This has no effect! -->
         select { width: 200px; }

To control the width of the selectmenu widget, you must set its width option as shown here:

      <!-- Your HTML here -->
      <select id="selectmenu">

      <script src=""></script>
      <script src=""></script>

      <!-- Your JavaScript here -->
         // This works...
         // $( "#selectmenu" ).selectmenu().selectmenu( "option", "width", 125);
         // But this is more succint...
         $( "#selectmenu" ).selectmenu({ width: 125 });