Candrias77
03-18-2003, 09:48 PM
Hi there, I am using the following script (on a radio button) to make two text input boxes empty when the radio button is checked:
onFocus="((document.pledgeForm.kmDonation.value='')&&(document.pledgeForm.lumpSumDonation.value=''))"
However this does not work. Both
onFocus="(document.pledgeForm.kmDonation.value='')"
and
onFocus="(document.pledgeForm.lumpSumDonation.value='')"
work but they do not work together.
I have tried a number of different syntax but it just doesn't want to work for me! I am sure that this can not be too hard to remedy, any help is appreciated.
Cheers
onFocus="((document.pledgeForm.kmDonation.value='')&&(document.pledgeForm.lumpSumDonation.value=''))"
However this does not work. Both
onFocus="(document.pledgeForm.kmDonation.value='')"
and
onFocus="(document.pledgeForm.lumpSumDonation.value='')"
work but they do not work together.
I have tried a number of different syntax but it just doesn't want to work for me! I am sure that this can not be too hard to remedy, any help is appreciated.
Cheers