jQuery Plugin for toggle attributes.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
jquery.toggleAttr.js

README.md

#toggleAttr

jQuery Plugin for toggle attributes.

##Example

<input placeholder="Passwort" type="password" />
<button type="button" onclick="$(this).prev('input').toggleAttr('type','text')">
  show/hide pass
</button>