07-28-2010, 07:21 PM
Just wondering if this could help you - it was too difficult to understand the html you sent .somehow i figured out few things hopefully will get a solution soon. I noticed that may be it could be resolved using object.currentstyle.display
see the part of html below (i have simplyfied it to make it clear)
you can see here that if Yes is selected then it sets the elements style to 'inline' else 'none'
would you like to try this and let me know if it helps?
see the part of html below (i have simplyfied it to make it clear)
Code:
<TD vAlign=top align=left colSpan=3><SELECT
onchange="document.MainForm.NCRIdentified.value = this.value;if(this.value=='1'){document.getElementById('ehsNonconformanceGrid').style.display ='inline';document.getElementById('ehsNonconforma=nceGrid').style.visibility = 'visible';} if(document.MainForm.NCRExist.value!='true'){document.getElementById('ehsNonconforman=ceGrid').style.display = 'none';} else{alert('You have already created Nonconformances. To change this selection you must first remove all the Nonconformances.');}"
name=NCRIdentified_combo ID="Select1"> <OPTION value=1 selected ="selected">Yes<OPTION
value=2>No</OPTION></SELECT>
would you like to try this and let me know if it helps?