使用jquery将项添加到列表框中
如何使用jquery将项添加到listBox。
例如,在以下列表框中
item 2 item 3 item 4 All
$('#Select1').append(''); // adds item 5 at the end $('#Select1 option').eq(0).after(''); // add new at the second position.
有几种方法。 您可以使用
$('').appendTo('#listbox'); $('#listbox').append('');