mathiasbynens / jquery-placeholder

A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet
https://mths.be/placeholder
MIT License
3.98k stars 1.34k forks source link

$("#theform").valid() #268

Closed DarinBeard closed 9 years ago

DarinBeard commented 9 years ago

This form gets submitted via jquery.form (ajaxsubmit) and is using jquery.validation. In IE 7, 8 , 9 the required fields do not fail validation as empty with the placeholder there when $("#theform").valid(); is called. I even added a method to the validation to check for notEqualTo the placeholder text and it still doesn't catch it. I am not sure what to do with this.

amerikan commented 9 years ago

@Donzella Haven't had time to look at this plugin lately, but will hopefully soon. For now you can try my other plugin https://github.com/amerikan/placeholder-polyfill which aims to solve same problem as this plugin, but taking a different approach.

amerikan commented 9 years ago

It's not going to work since this plugin is not compatible with jquery validation. See #66