PDA

View Full Version : javascript toggle not working in mac safari


Olona
05-09-2006, 11:46 AM
can anyone help me in identifying why this code doesn't work in mac safari? it also doesn't work in firefox 1.04 -- but as far as i have tested, it works in all other browsers. thank you much-

-----------------

<td><input id="need_pickup" name="need_pickup" type="checkbox" onClick="togglePickupType()" tabindex="18"/> Need a Pickup:</td>
<td id="pickup_cell">
<select id="pickup" name="pickup" tabindex="19">
<option value="1">CD</option>
<option value="2">Drawings</option>
<option value="3">Drawings with Handtruck</option>
</select>
</td>
-----------------------------------
<script type="text/javascript">
togglePickupType();
</script>
-----------------------------------
/*toggle visibility of the type of pickup input*/
function togglePickupType() {
if(document.getElementById('need_pickup').checked == true) {
changeElemVisibility('visible', document.getElementById('pickup_cell'));
}
else {
changeElemVisibility('collapse', document.getElementById('pickup_cell'));
}
}