An easy jQuery question.
I have several identical forms ( except their name ) on one page with a few hidden inputs in each. I want to refer to them by using the form name and then the input name. ( the input names are not unique in my page )
So for instance:
var xAmt = $('#xForm'+num).('#xAmt');
I really want to supply these values to an AJAX POST
$.ajax({ url: 'X.asp', cache: false, type: 'POST', data: 'XID=xID&xNumber=xNum&xAmt=xAmt',
…
If I can get the values in the AJAX call even better.
EDIT:
This allows you the most flexibility, and if only the input values will change (but the query string variables won’t), then you can pass in whatever you want as the value.