CompareAttribute of ASP.NET MVC 3.0

CompareAttribute of ASP.NET MVC 3.0

Hello All,

I am using MVC-3.0. I need to compare 2 model values for equality like password, confirm password. So, I used the CompareAttribute. I am also using jQuery 1.5 library. When the model values are compared(I am using CompareAttribute) and if the values are not same the CompareAttribute pops an error message in to the UI.

Now the problem is even if I clear and provide same values after I get the error message, the message is not cleared from the screen. The code still smells filth in the values provided. I have run out of probable reasons for this behavior. But yes i have learnt from my time over reading a several articles that jquery 1.5 can the probable reason. I have been also adviced to update the jQuery I am using. Is there any such update available to fix the problem?

Need help to resolve this. Thanks in advance.