{"id":2179,"date":"2011-12-13T14:10:36","date_gmt":"2011-12-13T20:10:36","guid":{"rendered":"http:\/\/bililite.nfshost.com\/blog\/?p=2179"},"modified":"2011-12-13T14:44:41","modified_gmt":"2011-12-13T20:44:41","slug":"new-jquery-plugin-showpassword","status":"publish","type":"post","link":"https:\/\/bililite.com\/blog\/2011\/12\/13\/new-jquery-plugin-showpassword\/","title":{"rendered":"New jQuery Plugin: <code>showPassword<\/code>"},"content":{"rendered":"<p>I put yesterday's <a href=\"\/blog\/2011\/12\/12\/unmask-password-plugin\/\" title=\"Unmask Password Plugin\">unmask password plugin<\/a> together with the code to automatically create a checkbox to control it, and removed the dependency on jQuery UI.<\/p>\r\n<p><a href=\"\/inc\/jquery.showPassword.js\">Download the code<\/a>.<\/p>\r\n<script src=\"\/inc\/jquery.showPassword.js\"><\/script>\r\n<h4>Example<\/h4>\r\n<pre><code class=\"demo language-html\">&lt;input type=&quot;password&quot; id=&quot;password&quot;\/&gt;<\/code><\/pre>\r\n<pre><code class=\"demo language-javascript\">$('#password').showPassword('Show Characters as I Type');<\/code><\/pre>\r\n<h4>Use<\/h4>\r\n<p><code class=\"language-javascript\">$('[type=password]').showPassword(string)<\/code> creates a checkbox as above with <code>string<\/code> as the label. If the checkbox is checked then the password field is unmasked. <code class=\"language-javascript\">$('type=password').showPassword(true)<\/code> unmasks the field directly, and <code class=\"language-javascript\">$('type=password').showPassword(false)<\/code> restores masking.<\/p>","protected":false},"excerpt":{"rendered":"I put yesterday's unmask password plugin together with the code to automatically create a checkbox to control it, and removed the dependency on jQuery UI. Download the code. Example &lt;input type=&quot;password&quot; id=&quot;password&quot;\/&gt; $('#password').showPassword('Show Characters as I Type'); Use $('[type=password]').showPassword(string) creates a checkbox as above with string as the label. If the checkbox is checked then [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,5],"tags":[],"_links":{"self":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2179"}],"collection":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/comments?post=2179"}],"version-history":[{"count":4,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2179\/revisions"}],"predecessor-version":[{"id":2183,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/2179\/revisions\/2183"}],"wp:attachment":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/media?parent=2179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/categories?post=2179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/tags?post=2179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}