cscs
09-09-2002, 12:54 AM
hello
i have three buttons in my form that i want disabled once the user clicks any of the buttons, all 3 buttons have the same element name (is this a bad idea?), so i thought one
document.form_name.submit.disabled = true;
would suffice for the 3 buttons, however, they're not disabling for some reason. can anyone tell me what i'm doing wrong?
my three buttons:
<input type="submit" name='mail_submit' value="send" class='input'>
<input type="submit" name='mail_submit' value="send & delete" class='input'>
<input type="submit" name='mail_submit' value="delete" class='input'>
i have three buttons in my form that i want disabled once the user clicks any of the buttons, all 3 buttons have the same element name (is this a bad idea?), so i thought one
document.form_name.submit.disabled = true;
would suffice for the 3 buttons, however, they're not disabling for some reason. can anyone tell me what i'm doing wrong?
my three buttons:
<input type="submit" name='mail_submit' value="send" class='input'>
<input type="submit" name='mail_submit' value="send & delete" class='input'>
<input type="submit" name='mail_submit' value="delete" class='input'>