jzaefferer/jquery-validation — Issue #323: Use `$(el).val()` instead of `el.value` for compatibility with plugins that define custom `valHooks`
Author: mathiasbynens
Created: 2012-02-24 09:49:35+00:00
State: open

Example: https://github.com/mathiasbynens/jquery-placeholder/issues/29#issuecomment-4104352

In my placeholder plugin, I patch `val()` through `valHooks`, so that it only returns the element’s `value` if the fake placeholder text is not being displayed at that point.

It would be awesome if your validation plugin would use `$(el).val()` instead of `el.value`, as it would improve compatibility with plugins like this that define custom `valHooks`.