placeholder-enhanced icon indicating copy to clipboard operation
placeholder-enhanced copied to clipboard

Fix $.val()

Open rthouvenin opened this issue 10 years ago • 0 comments

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! :)

rthouvenin avatar Dec 04 '14 05:12 rthouvenin