Skip to content

Instantly share code, notes, and snippets.

@najlepsiwebdesigner
Forked from anonymous/hider.html
Created June 26, 2013 10:59
Show Gist options
  • Save najlepsiwebdesigner/5866580 to your computer and use it in GitHub Desktop.
Save najlepsiwebdesigner/5866580 to your computer and use it in GitHub Desktop.
<!-- html -->
<a class="btn btn-mini hider-toggle" style="padding:0px 4px;">
<i class="icon-eye-open"></i>
</a>
<span class="hider">{$number->decrypted_password}</span>
<span class="hider-fake">*******</span>
<!-- style -->
<style>
.hider {
display:none;
}
</style>
<!-- jquery script -->
<script>
$(function(){
$('a.hider-toggle').click(function (){
$this = $(this);
$this.next('.hider').toggle();
$this.next().next('.hider-fake').toggle();
})
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment