On 9/12/06, fea jabi <[EMAIL PROTECTED]> wrote:

Have a html:text . onchange of the value entered in this field, have to
submit the form.

Using LookupDispatchAction.

<script>
function onNumChange(numObj)
        document.forms[0].method.value="numPay";
        document.forms[0].submit();
}
<script>

<html:hidden property="method"/> // used for LookupDispatchAction

<html:text name="Form1" styleId="numID" property="numPay"
onchange="onNumChange(this);"/>

IS it possible to submit a form onchange of a input field? the above is
not
working. How can this be done?

Thanks.

Please specify what do you mean by "not working"?? is the java script being
called?
Or is the method value not coming?
In case you are using tiles, document.forms[0] might be referring to some
other form. you should use the form name instead.

--
Puneet

Reply via email to