88
rated 0 times
[
94]
[
6]
/ answers: 1 / hits: 17652
/ 13 Years ago, tue, october 11, 2011, 12:00:00
I'm trying to write some javascript that will grab the inner text of li elements (1-16) and put them into hidden fields.
var myValue9 = document.getElementById(fileName9).value;
oForm.elements[fileName9].value = myValue9;
<input name=fileName9 type=hidden id=fileName9 />
<li id=wavName9> Some Text </li>
How do I return the text in between the <li>
and put into the hidden field?
More From » jquery