Philip, If it is in the same "<form...> ... </form>" form tag, try this javascript: this.form.delete.disabled=true
-David -----Original Message----- From: Philip [mailto:[EMAIL PROTECTED] Sent: Monday, November 17, 2003 11:02 PM To: [EMAIL PROTECTED] Subject: how to disable submit button when click on checkbox I have a question regarding checkbox, how can I disable a certain submit button when click on a checkbox? I tried the following but is not working: <html:submit property="delete" value="Delete"/> <html:checkbox property="ids" value="id" onclick="document.formName.delete.disabled=true" /> Also, is there a way I can count how many checkbox are selected in my jsp code? Please kindly help me. --------------------------------- Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]