jquery: how to append elements to emtpy object
Posted
by John
on Stack Overflow
See other posts from Stack Overflow
or by John
Published on 2010-04-13T16:12:43Z
Indexed on
2010/04/13
16:23 UTC
Read the original article
Hit count: 251
jQuery
I want to create a set of options, that will be appended to every select in grid column
<option> option 1 </option>
<option> option 2 </option>
...
<option> option N </option>
but I don't know how to create a set of elements without parent element.
appending to an empty jquery object doesn't work
var options = $('');
options.append('<option></option>')
© Stack Overflow or respective owner