Category: Java Scripts

How to validate email id in javascript 0

How to validate email id in javascript

Find the below code by which you can validate the email field using java-script on client side, var reg = /^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,4})$/; if(!reg.test(document.getElementById(“email”).value)){ alert(“Please fill email address in correct format”); document.getElementById(’email’).focus(); return false; }

How to export Email List from cpanel using javascript and firebug 0

How to export Email List from cpanel using javascript and firebug

To export the email address with the help of java-script: Login your cpanel and select the Email Accounts under the Mail section and change the result per page to show all the emails. Now...

Change iframe url using javascript 0

Change iframe url using javascript

If you want to change the iframe url from the iframe window, you can use this small function to change the url of the iframe. <script type=”text/javascript”> $(document).ready(function() { $(‘#clickToClose’).click( function() { window.parent.frames[“myframe”].location.href=’frame.php’; return...

Add custom or extra fields on registration page in wordpress 0

Add custom or extra fields on registration page in wordpress

Open your theme’s function.php file and drag this PHP code in. <?php // This function shows the form fiend on registration page add_action(‘register_form’,’show_first_name_field’);   // This is a check to see if you want...

How to check date if date is between two date 0

How to check date if date is between two date

This function the return the true and false if date is exist or not exist. function dateWithin(StartDate,EndDate,CheckDate) { var b,e,c; s = Date.parse(StartDate); e = Date.parse(EndDate); c = Date.parse(CheckDate); if((c <= e && c...