Hi all
I am using simple modal to open a registration form. I am trying to validate password and confirm password but the password field is always empty any idea?
<form method="post" action="Player/Register" id="registrationForm">
<input type="text" id="password" name="password" style="width: 200px" />
<input type="text" id="password_confirm" name="password_confirm" style="width: 200px" />
<form>
var validator = $("#registrationForm").validate(
{
rules: {
password:
{
required: true
},
password_confirm: {
equalTo: "#password"
}
}
}
);