Skip to content

Commit

Permalink
fixes mathiasbynens#123: let the placeholder extension also act on ch…
Browse files Browse the repository at this point in the history
…ange events to set/remove the placeholder when a script changes the value after initialization;
  • Loading branch information
Ralf Hergert committed Jun 13, 2013
1 parent b7f508e commit 3eba3d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jquery.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
.not('.placeholder')
.bind({
'focus.placeholder': clearPlaceholder,
'blur.placeholder': setPlaceholder
'blur.placeholder': setPlaceholder,
'change.placeholder': setPlaceholder
})
.data('placeholder-enabled', true)
.trigger('blur.placeholder');
Expand Down

0 comments on commit 3eba3d9

Please sign in to comment.