I am using javascript for form validation but after click on submit its showing me the alert but after cancelling the alert box it is processing and sending me to the next page

You have to return false from in your validating function when the validation process fails

commented: Yes +7

Hello Friends i am working on a e-commerce website i want to know how can i display the 4 products in first column than next 4 products into the next row and the process will go on for all the products list.