jemz — 2013-10-04T12:14:26-04:00 — #1
Hi, I need some help please...i am submitting form via jquery.ajax,and i am creating textbox dynamically in the form.now my problem is i want to get the value of my dynamic text box using classname.
I tried this but it's not working.
txt = $('.infoclass').val();
$('.mydiv').append('<input type="text" name="info" class="infoclass">');
Thank yoiu in advance.
pullo — 2013-10-04T14:44:31-04:00 — #2
You should be able to get the value of a dynamically created text element in the normal way.
Here's a demo.
The problem must lie elsewhere.
Can you supply more code?
jemz — 2013-10-04T16:33:11-04:00 — #3
Thank you for this i got it now