Jump to content

how to pass textbox value into ajax post and retrieved


balamurugan03

Recommended Posts

Hi friends,

 

                i am new in php, user fill the text box to get the value and post it to the next page using ajax. this is my requirement.

 

i call the textbox in while loop ,so i used the text  box name is ship_quantity[]

 

 

In jquery i get the value like that

 

$('input[name="ship_quantity[]"]').each(function(){
     var sq=$(this).val();

 alert(sq); 

 

now i get the value of 1,2 as user inputs. my questions is how to extract this values and send to ajax post.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.