Question

I have some radio buttons ie

<div class="buttonset">
          <input name="radio12" type="radio" class="" id="radio5" />
          <label class="yesno">Yes</label>
          <input name="radio12" type="radio" class="" id="radio6" />
        <label class="yesno">No</label> 
</div>

I also have this code in the head

<link rel="stylesheet" ref="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/ui-darkness/jquery-ui.css" type="text/css" media="all" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.js"></script>
<script>
            $(document).ready(function() {
                $(".buttonset").buttonset();
                alert ("Buttons created");
            });
    </script>

And My radio buttons are not rendering as button as expected.

What am I missing?

This jsfiddle page has an example of it not working http://jsfiddle.net/jd3Km/1/

After @soderslatt's suggestion of adding resources I get this enter image description here

Was it helpful?

Solution

Include the jquery ui css

http://jsfiddle.net/jd3Km/5/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top