Posts

Form validation check | CODE { The say foundation | project }

//File Namevalidatorchklist.js //============ Function to check field having no value =============== function blankCheck ( controlId , msg ) {     if ( $ ( '#' + controlId ). val () == '' )     {         // alert(msg);         // alert(controlId);         $ ( '.errMsg_' + controlId ). html ( msg ). show ();         $ ( '#' + controlId ). addClass ( 'error-input' );         $ ( '#' + controlId ). focus ();         return false ;     }     return true ; } //____________________________________________________________________ //Blade page: //employee Validate Message:     let validateMsg = [];     if ( ! blankCheck ( 'employerName' , 'Name can not be left blank' ))       validateMsg. push ( "Name can not be left blank" );       // return false;     /* if (!blankCheck...

MySQL Stored Procedured for learing access.

     CREATE DEFINER=`root`@`localhost` PROCEDURE insert_data(   userid  INT,                                           password VARCHAR(100),                                           username      VARCHAR(100),                                           useraddress   VARCHAR(100),                                           usergender    VARCHAR(100),                                           userphone ...

Javascript loops

 let arr = ["shuvadeep","shuvashree","rinku","biswanath"]; for loop: for(i=0; i < arr.length; i++){         console.log(arr[i]) } for in:  for (index in arr){     console.log( arr[index] ) } for of: for (index of arr){     console.log( index ) } forEach: let text = ''; arr. forEach ( index ); function index ( item ){   text += item ; } console.log( text );

Confrim Password in jQuery

  Confrim Password in jQuery <!DOCTYPE html> <html> <body> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <h1>Confrim Password</h1> <input type="password" id="txtNewPassword" placeholder="Enter passward" name="pass"> <input type="password" id="txtConfirmPassword" placeholder="Confirm Passward" name="confpass" > <div class="registrationFormAlert" style="color:green;" id="CheckPasswordMatch">     <script>     function checkPasswordMatch() {         var password = $("#txtNewPassword").val();         var confirmPassword = $("#txtConfirmPassword").val();         if (password != confirmPassword)             $("#CheckPasswordMatch").html("Passwords does not match!");         else             $("#CheckPasswordMatch").h...

Check Password Strength in jQuery

  Check Password Strength <!Doctype html> <html> <body>     <head>         <style>             #frmCheckPassword {                 border-top: #F0F0F0 2px solid;                 background: #808080;                 padding: 10px;             }             .demoInputBox {                 padding: 7px;                 border: #F0F0F0 1px solid;                 border-radius: 4px;             }             #password-strength-status {                 padding: 5px 10px;           ...

GST Calculation in jQuery

GST Calculation in jQuery  <!DOCTYPE html> <html> <body>     <head>         <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>     </head>     <h1>GST Calculation</h1>     <form method="post" action="">         <input type="hidden" name="mode" value="PinRequest" />         <label><b>Fee</b></label>         <input name="pages" id="pages" type="text"><br><br>         <label><b>Total Amount</b></label>         <input name="tot_amount" id="tot_amount" type="text">         <input type="submit" name="save" value="submit">     </form>     <script>         $(do...

How to Show Password in jQuery

Show Password in jQuery  <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> <script> $(document).ready(function(){   $("p").click(function(){     $(this).hide();   }); }); </script> </head> <body>  <input type='password' id='test-input' />   Show password <input type='checkbox' id='check' /> <script type='text/javascript'>         $(document).ready(function(){             $('#check').click(function(){              // alert($(this).is(':checked'));                 $(this).is(':checked') ? $('#test-input').attr('type', 'text') : $('#test-input').attr('type', 'password');             });         });     </script> </body...