jquery ui radio buttonset 問題
[i=s] 本帖最後由 rayin 於 2011-1-21 16:03 編輯 [/i]如果可以在同一form中, 有2個radio buttonset??[code]<div class="demo">
<form>
<div id="radio">
<input type="radio" id="radio1" name="radio" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio" /><label for="radio3">Choice 3</label>
</div>
</form>
<form>
<div id="radio111">
<input type="radio" id="radio11" name="radio" /><label for="radio11">Choice 11</label>
<input type="radio" id="radio21" name="radio" checked="checked" /><label for="radio21">Choice 21</label>
<input type="radio" id="radio31" name="radio" /><label for="radio31">Choice 31</label>
</div>
</form>
</div>[/code]如果是這樣, 是沒有問題的
但當只用一張form包住2個button set便會出問題, 變成6選1
請求助!! [code]<div class="demo">
<form>
<div id="radiod1">
<input type="radio" id="radio1" name="radio1" /><label for="radio1">Choice 1</label>
<input type="radio" id="radio2" name="radio1" checked="checked" /><label for="radio2">Choice 2</label>
<input type="radio" id="radio3" name="radio1" /><label for="radio3">Choice 3</label>
</div>
</form>
<form>
<div id="radiod2">
<input type="radio" id="radio4" name="radio2" /><label for="radio4">Choice 4</label>
<input type="radio" id="radio5" name="radio2" checked="checked" /><label for="radio5">Choice 5</label>
<input type="radio" id="radio6" name="radio2" /><label for="radio6">Choice 6</label>
</div>
</form>
</div> [/code]name 要分開 [b]回復 [url=http://jsgears.com/redirect.php?goto=findpost&pid=1702&ptid=614]2#[/url] [i]Mesak[/i] [/b]
@@噢....為什麼這麼簡單的問題我沒發現
給jquery搞到頭腦亂了....
謝謝回覆
頁:
[1]