I am trying to write text with a single name from a group of lessons.
For some reasons, this is not working.
Here are my text area:
And here is Javascript:
var Reply; $ (Function () {$ ('textarea [name = "tbmcq answer"]'). Map (function () {answers = "& lt; h3>" + this.value + "& lt; / h3 & gt; "}}}} Div.html (answer);
try it - (< Em> you will get an array of all values
var answer; $ (function () (reply = $ ('teddeta [name = "TBMCxager"]'). Map ( Function () {return "& lt; h3>" + this.value + "& lt; / h3 & gt;";}) .get (); $ ('div'). Html (answers.join ('' ));}); Demo ---->
No comments:
Post a Comment