Jquery AJAX response not working

Tanito

New Member
For some reason this jQuery function is not working properly. Here's my code... the response div is not updating with my response.WHEN AJAX FUNCTION IS CALLED\[code\]if ($action == 'sort') { echo 'getting a response'; return 0;}\[/code\]JQuery FUNCTION\[code\]function sort() { $.ajax({ type: "POST", url: "contributor_panel.php?action=sort", data:"sort_by=" + document.getElementById("sort_by").value + "&view_batch=" + document.getElementById("view_batch").value, success: function(html){ $("#ajaxPhotographSortResponse").html(html); } });\[/code\]}DIV TO REPLACE\[code\]<div id="ajaxPhotographSortResponse"></div>\[/code\]
 
Back
Top