placeholder-enhanced
placeholder-enhanced copied to clipboard
Fix $.val()
Two fixes for the replacement of jQuery.val:
-
$('someQuery').val('someValue')
should return the jQuery selection even if it is empty, but it was returning undefined. This breaks chained calls. - When an input is programmatically emptied while having the focus, it should not be put in placeholder mode. As it has focus, the user can type something in and it would be shown with placeholder style.
By the way, thanks for this plug-in, by the far the best of all solutions I have seen! :)