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 …

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

Call fancybox on page load

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

Some time we need to show an message in popup when someone enters in our website.Its easy to call fancybox on page load when we use fancy box make sure you have included fancybox core files and jQuery Here is …

Load More