3 075 Скрипты / Form

Плагин jQuery показа пароля

jQuery плагин для показа символов введенных в поле пароля.

HTML

  <form action="#">
    <ol class="forms">
      <li>
         <label for="username">Логин</label>
         <input type="text" name="username" id="username" />
      </li>
      <li>
         <label for="password">Пароль</label>
         <input type="password" name="password" id="password" class="password" />
      </li>
      <li class="buttons">
         <button type="submit">Отправить</button>
      </li>
    </ol>
  </form>

CSS

jаvascript

Подключаем jQuery, и плагин:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>     
<script src="js/jquery.showPassword.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function() {
  $(':password').showPassword({
    linkRightOffset: 5,
    linkTopOffset: 11
  });
});
</script>

Скачать 678Загрузок 2,69 Kb
Демо

Комментарии

  • Facebook
  • Вконтакте

Похожие статьи