Submitting form problem

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(); 


   $('#txtform').click(function(){
	   $('.mydiv').append('<input type="text" name="info[]" class="infoclass">');
     });


Thank yoiu in advance.

Hi jemz,

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?

Hi pullo,

Thank you for this i got it now :slight_smile: