<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script src="jquery3_2_1.js" type="text/javascript"></script> </head> <body> <form class="ajax" method="post" action="UpdateCart.php"> <input type="hidden" name="Item" value="Chicken"> <input type="hidden" name="Price" value="2.99"> <input type="hidden" name="Qty" value="5"> <button type="submit">ADD TO CART</button> </form> <script src="Test2.js" type="text/javascript"></script> </body> </html>
$(document).ready(function(){ $("form .ajax").submit(function(){ alert('Trigger'); return false; }); });
$("form .ajax")
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)