Add novalidate attribute causes an error in IE7 and lower.

Line 33 causes an error in IE7 and lower. Therefore I substituted $.attr by $.prop method.