Skip to content

Commit

Permalink
ignore input type of checkbox, radio, and hidden
Browse files Browse the repository at this point in the history
  • Loading branch information
amerikan committed Nov 5, 2015
1 parent d892478 commit c3675e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jquery.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@

return this.filter((isInputSupported ? 'textarea' : ':input') + '[' + (debugMode ? 'placeholder-x' : 'placeholder') + ']')
.not('.'+settings.customClass)
.not(':radio, :checkbox, :hidden')
.bind({
'focus.placeholder': clearPlaceholder,
'blur.placeholder': setPlaceholder
Expand Down

0 comments on commit c3675e7

Please sign in to comment.