Seven price
asked on
AngularJS ng-required conditions
I have 3 buttons if button 1 is pressed then number 1 text boxes will submit and it will ignore 2 and 3
if button 2 is pressed then 2 and 1 will check for validation but ignore 3.
if 3 is pressed the 2 and 1 and 3 will all check for validation.
is this possible.
http://jsfiddle.net/sevens nake/ahL58 /17/
if button 2 is pressed then 2 and 1 will check for validation but ignore 3.
if 3 is pressed the 2 and 1 and 3 will all check for validation.
is this possible.
http://jsfiddle.net/sevens
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Bob has a very nice solution there. I would only add the obvious, that in the buttonClick function you should probably make sure to reinitialize clickState array.
ASKER
tks