Permalink
Browse files

exclude [type="hidden"] not :hidden

fixes #283
  • Loading branch information...
amerikan committed Dec 17, 2015
1 parent fb900fe commit f3d4b7d40bb88f5214275b9316a8d0d23d1e5320
Showing with 9 additions and 9 deletions.
  1. +1 −1 index.html
  2. +2 −2 jquery.placeholder.js
  3. +3 −3 jquery.placeholder.min.js
  4. +1 −1 jquery.placeholder.min.js.map
  5. +1 −1 package.json
  6. +1 −1 simulated.html
View
@@ -31,7 +31,7 @@ <h1>HTML5 Placeholder jQuery Plugin</h1>
<br />
<input type="hidden" name="hidden" placeholder="This can't be seen">
<input type="hidden" name="hidden" placeholder="This can't be seen" value="secret">
<br />
View
@@ -1,5 +1,5 @@
/*!
* jQuery Placeholder Plugin v2.3.0
* jQuery Placeholder Plugin v2.3.1
* https://github.com/mathiasbynens/jquery-placeholder
*
* Copyright 2011, 2015 Mathias Bynens
@@ -52,7 +52,7 @@
return this.filter((isInputSupported ? 'textarea' : ':input') + '[' + (debugMode ? 'placeholder-x' : 'placeholder') + ']')
.not('.'+settings.customClass)
.not(':radio, :checkbox, :hidden')
.not(':radio, :checkbox, [type=hidden]')
.bind({
'focus.placeholder': clearPlaceholder,
'blur.placeholder': setPlaceholder

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -1,6 +1,6 @@
{
"name": "jquery-placeholder",
"version": "2.3.0",
"version": "2.3.1",
"title": "HTML5 Placeholder jQuery Plugin",
"description": "A jQuery plugin that enables HTML5 placeholder behavior for browsers that aren’t trying hard enough yet",
"author": {
View
@@ -31,7 +31,7 @@ <h1>HTML5 Placeholder jQuery Plugin</h1>
<br />
<input type="hidden" name="hidden" placeholder-x="This can't be seen">
<input type="hidden" name="hidden" placeholder-x="This can't be seen" value="secret">
<br />

0 comments on commit f3d4b7d

Please sign in to comment.