php - Updating session array with jquery -


i have dynamicaly created table products:

detail      qty    price     total detail1     3      23        69 detail2     1      3         3 

qty in text input field. every qty text field name unique detail code. need every time change qty field, updates session array unigue detail code.
how can on jquery without submitting form?

sorry bad english, omerimuni

this code has been taken (and modified slightly) another answer - should solve problem. try -

$('input:text[id*="qty"]').bind('keyup',function() {     $.post("my_other_script.php", { qty: this.id} ); });  

'my_other_script.php' -

<?php $_session['qty'] = $_post['qty']; ?> 

Comments

Popular posts from this blog

javascript - Iterate over array and calculate average values of array-parts -

iphone - Using nested NSDictionary with Picker -

objective c - Newbie question -multiple parameters -