首页>>表单>>多选的select对话框,支持自动查找(2016-09-04)

多选的select对话框,支持自动查找

多选的select对话框,支持自动查找

 

JavaScript Code
  1. $("#msdb-a").mSelectDBox({  
  2.                     "list": (function(){  
  3.                         var arr = [];  
  4.                         var counter = 0;  
  5.                         for(var c=0; c<100; c++){  
  6.                             arr.push(counter += Math.round(Math.random() * 99) * 10);  
  7.                         }  
  8.                         return arr;  
  9.                     })(),  
  10.                     "multiple"false,  
  11.                     "autoComplete"true,  
  12.                     "input:empty": eventLog,  
  13.                     "onselect": eventLog,  
  14.                     "name""a"  
  15.                 });  
XML/HTML Code
  1. <label>  
  2.                         <input id="msdb-a" class="std-input" type="text">  
  3.                     </label>  

 


原文地址:http://www.freejs.net/article_biaodan_584.html