Browse Source

don't try to apply the mask on non input elements

Robin Herbots 13 years ago
parent
commit
a64a7e81f9
1 changed files with 1 additions and 0 deletions
  1. 1 0
      jquery.inputmask.js

+ 1 - 0
jquery.inputmask.js

@@ -470,6 +470,7 @@ This plugin is based on the masked input plugin written by Josh Bush (digitalbus
 
             function mask(el) {
                 var $input = $(el);
+                if (!$input.is(":input")) return;
 
                 //store tests & original buffer in the input element - used to get the unmasked value
                 $input.data('inputmask', {