How to manually trigger AngularJS validation from a button outside of the form tags?

后端 未结 6 1271
滥情空心
滥情空心 2020-12-25 11:45

Given this code:

Header inputs:
6条回答
  •  青春惊慌失措
    2020-12-25 12:36

    This may or may not be acceptable, but if you can get away with the SUBMIT button being disabled until the form is completed, you can do this:

    
     
    
    

    It's also worth noting that this works in IE9 (if you're worried about that).

提交回复
热议问题