M
madforplaid
Can anyone help me to figure out a strange span/radio button/JavaScript
behavior?
When clicking on the radio button for WEEK 2 below all works okay, but
when clicking on the label for the same week, button 41 gets selected
instead:
<td align="center">
<span title="WEEK 2"><label
onMouseOver="this.className='option_wk_even'; window.status='WEEK 2
'+calNowYear+' Schedule';" onMouseOut="this.className='option_off';
window.status='';"><input type="radio" name="buttons" value="33"
onClick="displaySchedule(this);">
<label style="cursor: hand;"
onClick="document.forms['training'].elements['buttons'][33].click();"><b>WEEK
2</b></label></label></span></td>
Any thoughts as to why this happens?
Thanks,
Paul
behavior?
When clicking on the radio button for WEEK 2 below all works okay, but
when clicking on the label for the same week, button 41 gets selected
instead:
<td align="center">
<span title="WEEK 2"><label
onMouseOver="this.className='option_wk_even'; window.status='WEEK 2
'+calNowYear+' Schedule';" onMouseOut="this.className='option_off';
window.status='';"><input type="radio" name="buttons" value="33"
onClick="displaySchedule(this);">
<label style="cursor: hand;"
onClick="document.forms['training'].elements['buttons'][33].click();"><b>WEEK
2</b></label></label></span></td>
Any thoughts as to why this happens?
Thanks,
Paul