本文共 770 字,大约阅读时间需要 2 分钟。
/*************************************************注册用户证件号 复选框 combox循环赋值**********************************/function certTypeSelect(certType) { var typeStr = ''; var certTypes = '{"0":"身份证","1":"户口簿","2":"护照","3":"军官证","4":"士兵证","5":"港澳居民来往内地通行证","6":"台湾同胞来往内地通行证","7":"临时身份证","8":"外国人居留证","9":"警官证","X":"其他证件"}'; eval("certTypess = "+certTypes); $.each(certTypess, function(index, temp) { if (certType == null && index == 0) { certType = index; } if (index == certType) { typeStr += ''; $('#certType').combobox('setValue', certType); } else { typeStr += ''; } }); $('#certType').html(typeStr);}
效果图:
转载地址:http://lspfo.baihongyu.com/