Skip to content

Commit

Permalink
Use :submit instead of input[type=submit]
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens committed Feb 4, 2010
1 parent 96a91c4 commit 37ff1ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jquery.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
};
// Submit handler on all forms containing input[placeholder]
// Needs to be via .click()
$('form:has([placeholder]) input[type=submit]').click(function() {
$('form:has([placeholder]) :submit').click(function() {
// if ($(this).has('.placeholder') never returns false here — WTF?
if ($(this.form).find('.placeholder').length) {
$(this.form).find('.placeholder:first').val('').focus().removeClass('placeholder');
Expand Down
2 changes: 1 addition & 1 deletion jquery.placeholder.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 37ff1ff

Please sign in to comment.