Jack Hard
Freshie
- Messages
- 10
- Joined
- Dec 19, 2012
- Messages
- 10
- Reaction score
- 0
- Points
- 3
I have a series of text boxes that are dynamically generated on a html page through jquery. Now since these are not registered with DOM, i am not able to get their values.
$('.inputText').each(function() {
total += Number($(this).val());
**);
console.log(total);
total is not printed in above code. How can i get and set values to elements not registered with DOM?
$('.inputText').each(function() {
total += Number($(this).val());
**);
console.log(total);
total is not printed in above code. How can i get and set values to elements not registered with DOM?