skip to Main Content

Jquery ajaxcall

here ajax call is not happening inside function, outside function it is working, anyone can help in spotting the error $('#submit').on("click", function(){ var B = $('#search').val(); alert (B); $.ajax({ url:"hi.php", type:"POST", data:{A :10}, success: function(data){ console.log (data); }, }); })

VIEW QUESTION
Back To Top
Search