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 …

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 …

How to clear the placeholder on focus

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

By default place holder will stay there when we click on the text box, We can do it by writing simple code with javascript as follows Don’t forget to include jQuery The above code is mentioned only for text boxes …

Load More