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

linux - Using a Cron Job to check if my mod_wsgi / apache server is running and restart -

actionscript 3 - TweenLite does not work with object -

jQuery Ajax Render Fragments OR Whole Page -