<select> within <a href> that I don't want to execute the link

engeshosoccus

New Member
I have a table wrapped in an a href so if they click anywhere in the table, a link will get executed.My problem is that the table also has a select dropdown list and I don't want the link to execute if they click on the select element.I've tried ending the a href before the select and starting again after the select but that doesn't work.\[code\]<a href="http://stackoverflow.com/questions/14072301/#" id="modifyPrefs" style="text-decoration:none;color:black"><table class="formtable"> <tr> <td> <select> <option></option> <c:forEach items="${allPrefs.Siblings}" var="s"> <option>${s.lastName}</option> </c:forEach> </select> </td> </tr></table>\[/code\]
 
Back
Top