Permalink
Browse files

Minor correction to previous (jquery wrap an element call)

  • Loading branch information...
1 parent 097a4c7 commit d40b3b6e4558513061373fd7c461981d3573590a jdevesine committed Dec 1, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 jquery.placeholder.js
  2. +1 −1 jquery.placeholder.min.js
View
@@ -56,7 +56,7 @@
function prepPlaceholder(el, opts) {
var c = opts.classname;
- if(!el.is(':focus') && (el.val() == '' || el.val() == el.attr(opts.attribute))) {
+ if(!$(el).is(':focus') && (el.val() == '' || el.val() == el.attr(opts.attribute))) {
el.addClass(c);
if(el.val() == '') {
el.attr('value', el.attr(opts.attribute));

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

Oops, something went wrong.

0 comments on commit d40b3b6

Please sign in to comment.