US and Canada postal code validation RegEx

Posted by on Feb 8, 2014 in Javascript, Jquery, Magento | No comments yet

When dealing with magento or any other ecommerce websites which is meant to be targeted for specific countries or not we must check validity of the postal code On one of my recent projects I come with the same problem …

Upload image with preview

Posted by on Nov 4, 2013 in HTML, Javascript, Jquery, Php | No comments yet

Sometimes we need to preview images before uploading, As there are many JavaScript libraries like ajaxuploader to make this possible.There are time when we didn’t want to upload the files via AJAX. In that case we can do it using …

Simple countdown timer using javascript

Posted by on Jun 26, 2013 in HTML, Javascript | 80 Comments

we can create an simple countdown timer using javascript without any javascript library for that first we need to create an html element with the following And add the javacript code from below countdown(2) is the function which invokes the …

Get the selected value from multiple radio boxes having same name

Posted by on May 31, 2013 in HTML, Javascript, Jquery | No comments yet

The following code is used to get the selected radio button value by name

Load More