US and Canada postal code validation RegEx
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
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
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
The following code is used to get the selected radio button value by name