How to POST two parameters in PHP using Ajax – Jquery
I want to pass two parameters into the function getStuName() but found that there is error. Can anyone help me with the syntax? <script language="javascript"> function getStuName1(val, val1) { if(val!=''){ $.ajax({ type: "POST", url: "get_stuname1.php", data:'yr='+val+'&classname='+val1, success: function(data){ $("#stu-list1").html(data); }…