I am working on a website where I have a main one div. I wanted all pages to divwork as a link (clicking on it will send the form and go to another page), so I added to this attribute div:
<div class="box1" onclick="javascript:document.forms['womenForm'].submit();" ...>
Everything in this area shuold links to the next page , except for the HTML selection, which is located inside this div, but should be accessible for a click without going to the next page.
How can i do this? I tried to wrap the selected div element by specifying it href=""or onclick="", but still the form is submitted.
Can anyone solve this?
source
share