I am using the below jquery code to validate my form:
first_name: "Please enter your firstname",
last_name: "Please enter your lastname",
email: "Please enter a valid email address"
However my form code is created via a ajax call to a php page.
So I need to load the php file first before I validate. How can I integrate the above code with the code below???
Hope that makes sense?