Buttons not getting displayed
Hello, I'm pretty new to javascript and jquery/jqueryUI but of course trying to learn. In my project i'm adding some buttons that I want to display with the aid of jQueryUI, but unluckily even if to me what I did pretty resembles what's in the radio buttons demo, it still won't work at all.
First of all, I of course added the css both for my page and jqueryUI:
- <div id="controlpanel"><div class="QueryControls" id="Temporal">
- <form><div id="querytype">Choose a request type:<input type="radio" name="radio1" id="singlequeryradio" checked="checked"><label for="singlequeryradio">Query</label>
- <input type="radio" name="radio1" id="animationradio"><label for="animationradio">Animation</label>
- </div></form></div></div>
Finally, here's the javascript code:
- <script type="text/javascript" >
- $(document).ready(function(){
- $("#querytype").buttonset()
- });
- </script>
In the browser (chrome and firefox tested), my buttons are simple html radio buttons. Can someone point me to what I'm doing wrong?