
標題: jquery ui radio buttonset 問題 [打印本頁]
作者: rayin 時間: 2011-1-21 15:59 標題: jquery ui radio buttonset 問題
本帖最後由 rayin 於 2011-1-21 16:03 編輯
如果可以在同一form中, 有2個radio buttonset??<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>
如果是這樣, 是沒有問題的
但當只用一張form包住2個button set便會出問題, 變成6選1
請求助!!
作者: Mesak 時間: 2011-1-25 16:08
<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>
name 要分開
作者: rayin 時間: 2011-1-27 16:36
回復 2# Mesak
@@噢....為什麼這麼簡單的問題我沒發現
給jquery搞到頭腦亂了....
謝謝回覆
歡迎光臨 jsGears.com 技術論壇 - AJAX, JavaScript, jQuery, 網站開發, 前端效能優化 (http://jsgears.com/) |
|