Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix $.val() #41

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix $.val() #41

wants to merge 2 commits into from

Conversation

rthouvenin
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant