I have made a simple code for ajax to call a page but it does not seem to be working. can anyone tell me the error?
function toggledisp(val)
{
$.ajax({
url: 'ads/xyz.php?a=' + val + '&b=2' ,
});
}
Also if we want to output the response text then how do we do so by using this method??
1 Answer