-
Notifications
You must be signed in to change notification settings - Fork 21
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
Provide a mechanism for programmatically changing a field's placeholder text. #39
Comments
@nwhittaker you can't do this already with jQuery? |
@dciccale Yes, the attribute itself changes, but for non-supporting browsers, the field's placeholder text is not visually updated. $("#myinput")[0].value; // prints "placeholder text" |
Yes I get it, ok this could be done improving the custom val() function inside the plugin. Is a very important feature, I will implemented asap, if no one else do it before me. I leave this issue opened until fixed and mark it as a new feature to implement. Maybe you could modify the title for this issue to something like "update placeholder value when placeholder attribute change" or something like that. cool @nwhittaker thanks |
I think @nwhittaker is asking for more than just updating the custom .val() function. In the example he provided, after: I would expect That will require more change than just the custom .val(). |
Well, unless every time the plugin wants to access the placeholder attribute, should always get it without caching it as it is done now. Doing it so, will reduce performance but will always have the latest placeholder value. Unless an extension is made for the |
No description provided.
The text was updated successfully, but these errors were encountered: