skip to Main Content

toggle password/text with javascript only – Jquery

I'd like to change the following code to javascript only: $(document).ready(function() { $('.fa-eye, .fa-eye-slash').click(function() { $(this).toggleClass('fa-eye fa-eye-slash'); var input=$(this).parent().find('input'); if(input.attr('type')=='password') { input.attr('type', 'text'); }else input.attr('type', 'password'); }); }); What is does is when you click in an "eye icon" it…

VIEW QUESTION

jquery unrecognized expression div

I have a Syntax error, unrecognized expression. I use a set of links to change to a div on the same page and sent a variable with it. <a href="?taal=<?PHP echo $taal; ?>#Home">Voorpagina</a> <a href="?taal=<?PHP echo $taal; ?>#Updates">Updates</a> <a href="?taal=<?PHP…

VIEW QUESTION
Back To Top
Search