<script type=”text/javascript” src=”option_check.js”></script>
<style type=”text/css”>
.hover
{
background-color: Blue;
color: White;
}
</style>
<script type=”text/javascript”>
$(function(){
Jselect($(“#txt_wbk”),{
bindid:’txt_wbk’, //可绑定到按钮上,此处为点击文本框显示下拉框
hoverclass:’hover’,
optionsbind:function(){return hqhtml();}
});
})
function hqhtml(){//此处可在数据库中取值后拼接html,注意:预选项加上 lang=’checked’属性
var optionshtml=”<table style=’width:100%; background-color: Red’ cellpadding=”0” cellspacing=”0” >“
+”<tr><td style=’width:20px’><input type=”checkbox” value=’1′ /></td><td>第一项</td></tr>”
+”<tr><td><input type=”checkbox” value=’2′ lang=’checked’/></td><td>第二项</td></tr>”
+”<tr><td><input type=”checkbox” value=’3′ /></td><td>第三项</td></tr>”
+”<tr><td><input type=”checkbox” value=’4′ /></td><td>第四项</td></tr></table>”;
return optionshtml;
}
</script>
<div>
<input id=”txt_wbk” type=”text” style=”width: 200px;” />下拉框测试
</div>










