I am working on a web video game project written in HTML/JavaScript and I ran into an issue.I have been...

profilesrisudha14

I am working on a web video game project written in HTML/JavaScript and I ran into an issue.

I have been trying to validate this form and the code I added usually works for me with just JavaScript.

However, this form has specific angular.js code around it and I am having trouble validating the form. When I hit the submit button it just runs the submission code anyway without checking that all the validation rules passed. NOTE: The submit code works 100% on its own.

Do you know how I can add this validation properly that would make the page validate before firing off the angular stuff?

Another problem that has happened is that I want to have the span tags I added display a success/error next to the associated field to the right on the same line. They appear on the next line for some reason.

 

  • 11 years ago
  • 5
Answer(1)

Purchase the answer to view it

blurred-text
NOT RATED
  • attachment
    screen_shot_working.png
  • attachment
    angular_code_working.doc
Bids(0)