From c3675e755834d7a937d4ce2a6619d4e436c69749 Mon Sep 17 00:00:00 2001 From: Erik Montes Date: Wed, 4 Nov 2015 16:02:51 -0800 Subject: [PATCH] ignore input type of checkbox, radio, and hidden --- jquery.placeholder.js | 1 + 1 file changed, 1 insertion(+) diff --git a/jquery.placeholder.js b/jquery.placeholder.js index bb7d600..3a47540 100644 --- a/jquery.placeholder.js +++ b/jquery.placeholder.js @@ -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