Hi People. Hope you can advise.
I have a form loaded though an Ajax Call. I now want to be able to use this form again by using an Ajax call. I am unable to preventDefault unless I put it directly after the form which I really dont want. I know through other Ajax calls I have done that I have had to Bind & Unbind the links but its not working with a from. Here is a basic form example loaded. <form action"#" method="post" id="addme"> <input type="text" name="" value="" /> <input name="submit" type="submit" value="Submit" /> </form> Then the JS. $(document).ready(function(){ function ajaxSuccessCall(){ ajaxSuccessCall(); $('#addme').unbind('submit').bind('submit', function(event) { event.preventDefault(); console.log("test"); // do form stuff ajaxSuccessCall(); }); }; // [END] ajax Call Success }); //close hope you can advise. Thanks in advance