Skip to main content

Posts

Showing posts from April, 2022

Password validation script

  < script >         var check = function () {             if ( document . getElementById ( 'password' ). value ==                 document . getElementById ( 'confirm_password' ). value ) {                     document . getElementById ( 'message' ). innerHTML = '' ;                 document . getElementById ( 'submit' ). disabled = false ;             } else {                     document . getElementById ( 'message' ). style . color = 'red' ;                 document . getElementById ( 'message' ). innerHTML = 'not matching' ;                 document . getElementById ( 'submit' ). disabled = true ;         ...