PDA

View Full Version : Re: OnChange event does not fire for disabled field



sanjeevverma
Mar 2nd, 2007, 03:40 AM
Hi,

I have a input field on the form which is disabled. This field is populated thru another popup.

I have onchange event for this filed which fires javascript function. This javascript function never gets executed.

I know the reason because onchange fires only when the field loses the focus. Becasue this field is disabled , onchange never gets fired.

Any suggestion how to exceute the javascript function once this field is populated.

Thanks in advance

SKV

vwphillips
Mar 2nd, 2007, 07:25 AM
This field is populated thru another popup

this event can also fire what ever the onchange is require to do

sanjeevverma
Mar 2nd, 2007, 04:15 PM
This is how my code looks:

<input type="text" name="${status.expression}" value = "${status.value}" size="50" class="disabledInput" disabled="disabled" onChange="javascript:showHideDeleteIcon(${loopStatus.index});" />


Javascript functions never gets fired after input field is populated.

Thanks

Sanjeev

glenngv
Mar 2nd, 2007, 04:54 PM
I'm not sure if this is cross-browser.

formRef.theFieldName.onchange();