Try:
function Disable() {
frm=document.forms['form1']
if(frm.ids.checked)
{frm.modify.disabled=false}
else {frm.modify.disabled=true}
}
Or simpler:
function Disable() {
frm=document.form1;
That's what I did. But the 'modify' button didn't
react at all.
--- Yann Lebreton [EMAIL PROTECTED] wrote:
Try:
function Disable() {
frm=document.forms['form1']
if(frm.ids.checked)
{frm.modify.disabled=false}
else
to identify submit button in JSP
That's what I did. But the 'modify' button didn't
react at all.
--- Yann Lebreton [EMAIL PROTECTED] wrote:
Try:
function Disable() {
frm=document.forms['form1']
if(frm.ids.checked)
{frm.modify.disabled=false
to identify submit button in JSP
That's what I did. But the 'modify' button didn't
react at all.
--- Yann Lebreton [EMAIL PROTECTED] wrote:
Try:
function Disable() {
frm=document.forms['form1']
if(frm.ids.checked)
{frm.modify.disabled=false
, November 19, 2003 11:49 AM
To: Struts Users Mailing List
Subject: RE: How to identify submit button in JSP
Well, I have a couple of other forms with the same
form name 'idForm' but diffrent action, does that
cause the problem? How should I handle that?
I checked the form name in html output
...
FYI if you have 2 forms with the same name or in your form 2 fields named ids (or modify) this script won't work.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 19, 2003 11:49 AM
To: Struts Users Mailing List
Subject: RE: How to identify submit
6 matches
Mail list logo