2010-12-30 12 views
0

Ich versuche, einige jQuery UI radio buttons einzurichten, aber es funktioniert nicht.Kann nicht jQuery UI Radio-Buttons arbeiten

jsFiddle

HTML

<div id="type_radios"> 
    <input type="radio" value="option_a" name="note_type" id="note_type_option_a"/><label for="note_type_option_a">a</label> 
    <input type="radio" value="option_b" name="note_type" id="note_type_option_b"/><label for="note_type_option_b">b</label> 
</div> 

Javascript

$(document).ready(function() { 
    $("#type_radios").buttonset(); 
}); 

Was mache ich falsch? Danke fürs Lesen.

Antwort

2

Was Sie funktioniert haben, werden Sie darunter nicht nur das Stylesheet für jQuery UI (und in diesem Fall gibt es einfach keine optische Veränderung, ohne sie), zum Beispiel:

http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.5/themes/ui-lightness/jquery-ui.css 

Here's your updated fiddle, stylesheet included, working :)