Hi Hapinder,
Just check out the following link that describes clearly the solution given by Agni.
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=223&SearchTerms=Is,it,possible,to,Hide/Disable,a,control,through,scripting(jscript),in,infopath?
Regards,
Abhishek