I have forgot password page, where the user enters the username and clicks the \'Validate\' button to check which group he is in. Based on the group we need to display the d
Addressing the part of your question that is answerable right now:
if(IsDataValid){
// redirect to new page(
}
else{
//Show an error message without hiding the div
}
To redirect, use window.location.replace('url to new page');
.
For the "error message" part, I would either use jQuery UI to display a dialog, or have a hidden div that you insert error messages into, perhaps like so:
$('#errors').html(data.Errors).show();
This assumes you have some sort of property called Errors
that contains validation messages on RegistrationModel
.