<div>
<table class='accor'>
<tr>
<td>Roll No.</td>
<td>12801</td>
</tr>
<tr>
<td>Name</td>
<td>XXXX</td>
</tr>
<tr>
<td>Class</td>
<td>MS</td>
</tr>
</table>
</div>
我希望上面的代碼作爲單選按鈕。上面的代碼在php while循環中運行,並且從數據庫提供數據。 (我還需要使用checked=checked
來匹配預定義值。) 我正在使用帶有收音機的jquery ui buttonset style。使用div作爲單選按鈕
我該如何做到這一點?
具有u嘗試到現在呢? – Rahul
告訴我們你到目前爲止做了什麼.. –
我試過了jquery'(selector).click()',然後通過ajax($ .post)提交表單來更新xml文件中的選擇。即使沒有使用單選按鈕也能正常工作。但我無法使用ui按鈕和檢查=檢查選項與我的方法。對不起,我無法向你展示代碼,因爲它們大多數都是使用'echo'和變量的php代碼。並不能在小提琴中表現出來。 – RatDon