PDA

View Full Version : Problem with onclick IE



Thijsje
01-12-2008, 03:19 PM
Hi,

I've got some Javascript, wicht is actually working in Firefox, but in IE doesn't work. I've tried some different things, but nothing really seemed to solve the problem, so maybe you know what i'm doing wrong. Or maybe IE just sux:rolleyes:

this is the code i have:


<tr>
<td>Begin Tijd:</td>
<td>
<select name='pers_tlb1'>
<option value='#'>Maak een keuze</option>
<option value='#'>Anders, namelijk...</option>
<option value='bk_boekingen_tb_inladen' onClick="personeel.pers_tbu1.value='10';this.form.pers_tbm1.value='00'">Inladen - Begin</option>
<option value='bk_boekingen_te_inladen' onClick="this.form.pers_tbu1.value='11';this.form.pers_tbm1.value='01';">Inladen - Eind</option>
<option value='bk_boekingen_tb_bouw' onClick="this.form.pers_tbu1.value='12';this.form.pers_tbm1.value='02';">Opbouw - Begin</option>
<option value='bk_boekingen_te_bouw' onClick="this.form.pers_tbu1.value='13';this.form.pers_tbm1.value='03';">Opbouw - Eind</option>
<option value='bk_boekingen_tb_show' onClick="this.form.pers_tbu1.value='14';this.form.pers_tbm1.value='04';">Show - Begin</option>
<option value='bk_boekingen_te_show' onClick="this.form.pers_tbu1.value='15';this.form.pers_tbm1.value='05';">Show - Eind</option>
<option value='bk_boekingen_tb_breken' onClick="this.form.pers_tbu1.value='16';this.form.pers_tbm1.value='06';">Afbreken - Begin</option>
<option value='bk_boekingen_te_breken' onClick="this.form.pers_tbu1.value='17';this.form.pers_tbm1.value='07';">Afbreken - Eind</option>
<option value='bk_boekingen_tb_uitladen' onClick="this.form.pers_tbu1.value='18';this.form.pers_tbm1.value='08';">Uitladen - Begin</option>
<option value='bk_boekingen_te_uitladen' onClick="this.form.pers_tbu1.value='19';this.form.pers_tbm1.value='09';">Uitladen - Eind</option>
</select>
<input type='text' name='pers_tbu1' maxlength='2' size='2'>:<input type='text' name='pers_tbm1' maxlength='2' size='2'>
</td>
</tr>

pman
01-12-2008, 05:07 PM
onclick event on "option" element isn't allowed in IE. Use onchange on your "select" tag. Someone else just posted regarding the same issue.

http://www.dynamicdrive.com/forums/showthread.php?t=28368