What I’ve got is a number of dynamically generated “cards” on a page.
Clicking anywhere on the card needs to submit over to a detail page.
Works fine in IE10, Firefox, Chrome … IE9 and below - absolutely NOT working.
I suspect it’s an issue with the <button> tag surrounding off the form contents (which lets you click anywhere on the “card”, but I’ve not found a work around yet.
So, there’s mutliple of these on a page. Each has a unique id number. This one is obviously “2”.
<form name="form2" action="category.cfm" method="post" class="theFORM" id="form2">
<button id="cbut2" onMouseDown="submit();">
<h3>This is a Card Title</h3>
<p>This is some small text that goes here</p>
<input type="hidden" name="thisCARD" value="2" />
</button>
</form>
Clicking any of the top row of cards changes the bottom row to the proper category.
Clicking any of the bottom cards takes you to a detail page.
Also tried onClick instead of OnMouseDown. Same results.
Working great outside of IE9 and below…