easyui radio 取值和赋值
生活随笔
收集整理的這篇文章主要介紹了
easyui radio 取值和赋值
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
1.html文件
<td><input id="client" type="text" name="client"style="width: 150px;" class="easyui-textbox"data-options="required:true" /> 委托人證件類型:<input id="certType1" type="radio" name="certType"checked="checked" value="身份證"><label>身份證</label></input><input id="certType2" type="radio" name="certType"value="護照"><label>護照</label></input></td>?
?
2.js文件
//將委托人的信息進行賦值 radioif (detail.certType == "身份證") {$("input[name='certType']").get(0).checked=true;}else if(detail.certType == "護照"){$("input[name='certType']").get(1).checked=true;}親測有效。
?
轉載于:https://www.cnblogs.com/mr-wuxiansheng/p/6403611.html
總結
以上是生活随笔為你收集整理的easyui radio 取值和赋值的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Java基础知识:IO
- 下一篇: codevs 3054 高精度练习-文件