Hi,
I'm also trying to do a form validation. I already added an onsubmit in the form that will call a function to validate the form fields. Ideally, some fields should not be empty. When I tried it it's not loading the alert box. It is still being added to the shopping cart.
Can you suggest some ways on how should I go about it? Thanks :)