PEIYANGXINQU

 

将一个dropdownlist从一个div复制到另一个div

<select id="dropdwon1">
 <option value="1">Item1</option>
 <option value="2">Item2</option>
 <option value="3">Item3</option>
</select>

<select id="dropdwon2"></select>


$('#dropdwon1 option').clone().appendTo('#dropdwon2');
View Code

http://jsfiddle.net/whoamiwho/3HXQL/

 

 

鼠标放上去tooltip:http://jsfiddle.net/whoamiwho/2e9h6/       http://stackoverflow.com/questions/19746432/make-kendo-ui-dropdownlist-display-the-title-attribute-of-select-control-as-a-ke/19747152#19747152

 

http://stackoverflow.com/questions/4433861/copy-option-list-from-dropdownlist-jquery

posted on 2014-03-21 14:31  PEIYANGXINQU  阅读(193)  评论(0编辑  收藏  举报

导航