You have to do getField('target.value'). $j('#target') won't work.

-Darius (by phone)

On Aug 29, 2011 6:34 AM, "Muhammad Tariq Khan" <[email protected]>
wrote:

Thank you Darius,

I am using the following script for handling events, but the disable script
is not working.
I want to disable a combo box and I am trying hard but no success yet.
Please guide ..

-----------JavaScript Section----------------

getField("tar.value").change(function() {

  $j('#target').attr('disabled', 'disabled'); -->> Not working.

   window.alert ( getValue('target.value') ); -->> Working
 });

---------------HtmlFormEntry Code -------------
<obs id="tar" conceptId="143264" labelText="Cough"
answerConceptIds="1065,1066" answerLabels="Yes,No"/>

<obs id="target" conceptId="1071" labelText="Cough Type"
answerConceptIds="5957, 1488" answerLabels="Productive Cough, Non-Productive
Cough"/>

- Tariq Khan

_________________________________________

To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to
[email protected] with "SIGNOFF openmrs-implement-l" in the  body
(not the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

_________________________________________

To unsubscribe from OpenMRS Implementers' mailing list, send an e-mail to 
[email protected] with "SIGNOFF openmrs-implement-l" in the  body 
(not the subject) of your e-mail.

[mailto:[email protected]?body=SIGNOFF%20openmrs-implement-l]

Reply via email to