js/register.js
//a simple fuction to hide typed passwords and show them when the relevant checkbox is filled
a simple fuction to hide typed passwords and show them when the relevant checkbox is filled
a simple fuction to hide typed passwords and show them when the relevant checkbox is filled
function showPassword() {
  var x = document.getElementsByClassName("passwordField")
  $(x).each(function () {
    if ($(this).attr('type') === "password") {
      $(this).attr('type', 'text')
    } else {
      $(this).attr('type', 'password')
    }
  })
}
function showPassword ( ) { var x = document . getElementsByClassName ( "passwordField" ) $ ( x ) . each ( function ( ) { if ( $ ( this ) . attr ( 'type' ) === "password" ) { $ ( this ) . attr ( 'type' , 'text' ) } else { $ ( this ) . attr ( 'type' , 'password' ) } } ) }
a simple fuction to hide typed passwords and show them when the relevant checkbox is filled
a simple fuction to hide typed passwords and show them when the relevant checkbox is filled