[jQuery] AJAX load syntax question
I'm wondering if there's a way to pass AJAX POST vars with a key
that's assigned as a variable, e.g.
function updateQty(uniqueID,qty){
$("#basket").load("/basket-contents.html",{uniqueID:qty});
}
What I'd like to get from this is a POST var with a key of whatever
the variable uniqueID is, but what I get is a POST var called
"uniqueID".
It seems like there must be a syntax for doing this that I just don't
know, right?