Remember, <obs .../> isn't a real HTML tag, and it doesn't necessarily
create just a single html element. You have to do
getField("tar.value").change(function() { ...
-Darius
On Mon, Aug 15, 2011 at 1:58 AM, Muhammad Tariq Khan <[email protected]
> wrote:
> Thank you Darius,
>
> The code is working when I am using it as MDR-TB module's intake form.
>
> Darius, now the event is calling but I am trying to disable an element but
> this isnt not working.
>
> Following is the code ..
>
> -----------JavaScript Section----------------
> $j("#tar").change(function() {
>
> $j("#target").attr("disabled", true); //-->> Here is the problem. This is
> not being called
>
> window.alert('Handler for .change() called.'); //-->> This is 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"/>
>
> Guidance required.
>
> - 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]