On Click alert if $.get returns a value, if not, submit the form
- by bradenkeith
If the submit button is clicked, prevent the default action and see if the field 'account_name' is already in use. If the $.get() returns a result, alert the user of the results. If it doesn't, submit form with id="add_account_form".
My problem is that my else{} statement is not submitting the form. I get no response when submit is clicked &…