ui-select.js下拉框美化插件是一款能增強(qiáng)和美化網(wǎng)頁默認(rèn)select下拉框元素的jQuery Select下拉框美化代碼,并且在所有瀏覽器中樣式顯示一致。
js代碼
<script src="jquery.js"></script>
<script src="ui-select.js"></script>
<script>
// 將所有.ui-select實(shí)例化
$('.ui-select').ui_select();
// 獲取已經(jīng)實(shí)例化的select對(duì)象
var obj = $('#sel_api').data('ui-select');
obj.onClick = function(value) {
switch (value) {
case '2':
$('#sel_03').data('ui-select').enable();
break;
case '3':
$('#sel_03').data('ui-select').disable();
break;
case '4':
$('#sel_01').data('ui-select').val('3');
break;
case '5':
$('#sel_02').data('ui-select').toggle();
break;
case '6':
$('#sel_02').data('ui-select').visible();
break;
case '7':
$('#sel_02').data('ui-select').visible(true);
break;
}
}
</script>
哈爾濱品用軟件有限公司致力于為哈爾濱的中小企業(yè)制作大氣、美觀的優(yōu)秀網(wǎng)站,并且能夠搭建符合百度排名規(guī)范的網(wǎng)站基底,使您的網(wǎng)站無需額外費(fèi)用,即可穩(wěn)步提升排名至首頁。歡迎體驗(yàn)最佳的哈爾濱網(wǎng)站建設(shè)。
