In my view I open a modal popup with 2 fields
<label for="password">Inserire nuova password:</label>
<input name="ag[password]" type="password" value="<?=$ag->password?>">
<label for="repassword">Reinserire nuova Password:</label>
<input name="ag[repassword]" type="password">
I’d like to insert a script in view, for check that “repassword” value is == first “password” value. Ho can I do this?
Another question, suppose that I’d like to use AngularJS for manage this, how could be right solution?
I’d like to know 2 solutions:
-
Simple JS check
-
AngularJS check
Thanks