brainbumping

password123 Version 1.1 with placeholders

I was trying to think of problems that people might come across in using this plugin and the first thing that came to mind was placeholders.  They are getting more popular these days, especially since they’re so easy now with HTML5.  So, it took some work, but password123 1.1 will support any placeholders you put in the html.  Like so…

<input type="password" value="password"/>

OR for the HTML5 enchanced…

<input type="password" placeholder="password">

An option allows you turn off the placeholder functionality and just have a regular default value.  Another advantage is you can choose to have the placeholder masked or unmasked, and of course the virtues of gracefully unobtrusive javascript are still upheld.  I admit I had mentioned the word “placeholders” before, but they were just default values without the focuses and blurs.