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 ...

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() ...
iframe

Open link in parent from child window or iframe using javascript

If you want to control parent window’s URL from the child frame or child window you can use “window.parent” to control the parent window. The complete solution is: <script ...

How to upload multiple files at a time

To upload a file first of all you have to set the form  “enctype” Like the given blow example. <form id=”form1″ name=”form1″ method=”post” ...
© 2017 Sumit Bansal. All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie