I'm trying to add the selectmenu jqueryui plugin to my page. I have gone to https://github.com/fnagel/jquery-ui
and copied the file jquery.ui.selectmenu.js
from the ui folder. I have then included a link to this javascript from my page. I have a fresh install of jquery and jqueryui installed and other functionality is ok but when I add a $('select').selectmenu();
to my page I end up with a horrible mess. All of the new selectmenus are appended to the bottom of the page instead of replacing the selects.
Is there a step I've missed?
The following is the html from the page showing the files I have linked to. My understanding is that the custom.css and custom.min.js files should have all of the scripts and stylesheets I need in them. Is this wrong?
<link href="/stylesheets/jquery-ui-1.8.6.custom.css?1289473366" media="screen" rel="stylesheet" type="text/css" />
<script src="/javascripts/jquery-1.4.2.min.js?1288662624" type="text/javascript"></script>
<script src="/javascripts/jquery-ui-1.8.6.custom.min.js?1289401432" type="text/javascript"></script>
<script src="/javascripts/jquery.ui.selectmenu.js?1289469657" type="text/javascript"></script>
A datepicker item I have on my page is displayed with the appropriate css applied.