Aarthi Kannan Posted August 27, 2010 Share Posted August 27, 2010 Am facing a problem in javascript code..Am stuck with how to disable a form field wen a radio button is already preseleted..Pls help..When the radio button for Window Mode is no ie $mode is no, i want start date filed to be disabled.. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/211882-disable-function/ Share on other sites More sharing options...
Omirion Posted August 27, 2010 Share Posted August 27, 2010 Function check (){ var obj = // get your desired field. if ($mode == 'on'){ obj.disabled = true; } } If you can't go on your own from the code above i will ask you to post you code so it is easier for me to explain it. Link to comment https://forums.phpfreaks.com/topic/211882-disable-function/#findComment-1104473 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.