For simple ajax calls, I usually prefer to use $. load , because its grammar is extremely short. Passing parameters as an object (key / value pairs) will force it to use a POST request:
<a href="no-script.php" class="something">Click!</a> $(document).ready(function() { $('a.something').click(function(e) {
If you don't need POST, you can simply add your parameters to the query string:
$('div.classname').load('send.php?param1=' + param1 + '¶m2=' + param2);
source share