Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
LogIn Show/Hide password
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / Torrent Trader / v3 Mods in Progress

2023-07-03 17:25:42
doesn't show/hide just modifiy the fields type attribute to from 'text' to 'password', and vise versa?


<!DOCTYPE html>
<html>
<head>
 <title>Toggle Input Type</title>
 <script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
</head>
<body>
 <form>
   <input type="text" id="myInput" />
   <br />
   <button id="toggleBtn">Toggle</button>
 </form>

 <script>
   $(document).ready(function() {
     $("#toggleBtn").click(function(e) {
 e.preventDefault();
       var inputType = $("#myInput").attr("type");

       if (inputType === "text") {
         $("#myInput").attr("type", "password");
       } else if (inputType === "password") {
         $("#myInput").attr("type", "text");
       }
     });
   });
 </script>
</body>
</html>
2023-07-03 19:43:20
Ok, thank's!   👍
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728