please help me to solve a simple issue.
I use MVC4 + bootstrap validation.
I have a form [Login, Password] auth. When user presses submit button ajax form sends its input data into the server and than it checks if user is authenticated etc. In case of server error (password or username are wrong) server returns json object "error=message".
After submitting an ajax form it calls the js function onSuccess where I check if the return data is error or not.
So, here I want to show the message to user with the server-side data (in this example, that his mail or password were wrong) somehow using bootstrap, e.g. in the input email field. How can I do that? Moreover how can I add custom messages to the form after submitting it and getting messages from server?
Thank you.