-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Placeholder text is being submitted with the form #254
Comments
I'd been having this issue with IE10/11 lately, and am using this coffeescript as a workaround:
|
Created a pull request for that. #265 Give it a try, maybe it'd help you. |
Thanks -- I'll give it a go and let you know how it works out. |
Ah, was wrong. The timeout should be longer. Like 1000 or even 2000 |
Have you tried using the version on latest commit? https://github.com/mathiasbynens/jquery-placeholder/blob/gh-pages/jquery.placeholder.js it's not minimized, but that's the latest and many bugs were fixed. |
Yeah, but this setTimeout(function() {
$inputs.each(setPlaceholder);
}, 10); didn't work for me until I increased this to 1-2 sec |
@inspire22 that should not be the case. The plugin should not even activate on IE 10/11 since those versions already support placeholder attribute natively. |
duplicate of #244 |
I'm using onclick handlers on an image (I know, this is bad code -- it is legacy code I'm stuck with) that submits the page's form. The placeholder shows up perfectly, but when I submit without changing the placeholder text (in my case "Enter your notes...") shows up in the notes section of the form. I've seen similar issues like this, but no good solutions -- please help!
The text was updated successfully, but these errors were encountered: