If I have a textarea like var txtarea = $(\'textarea\'), how can I set the value to it using the JavaScript property value, and not th
The jQuery .get() will do that for you
http://api.jquery.com/get/
Without a parameter,
.get()returns all of the elements:alert($('li').get());With an index specified,
.get()will retrieve a single element:($('li').get(0));...we can use the array dereferencing operator to get at the list item instead:
alert($('li')[0]);