1.html文件

             <td><input >
                            style="width: 150px;" class="easyui-textbox"
                            data-options="required:true" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;委托人证件类型:
                        <input >
                            checked="checked" value="身份证"><label>身份证</label></input>
                        <input >
                            value="护照"><label>护照</label></input>
                        </td>

 

 

2.js文件

//将委托人的信息进行赋值  radio
    if (detail.certType == "身份证") {
        $("input[name='certType']").get(0).checked=true;
    }else if(detail.certType == "护照"){
        $("input[name='certType']").get(1).checked=true;
    }

亲测有效。

 

相关文章: