As the title implies I'm looking for a better way to pass data parameters in jquery. I'm relatively new to jquery and do most of my Ajax like this:
$.ajax({
type: "POST",
url: "some.php",
data: { name: "John", city: "Boston" });
It's ok if I'm passing a couple of parameters but once it gets to more than five it gets a bit ugly. Is there a better way?
Thanks David