hi all,
my dropdownlist 'cboUnitTypes' is populating on the base of another
dropdownlist1, i have to apply a check on 'cboUnitTypes' like
if(cboUnitTypes[cboUnitTypes.se lectedindex].value==0)retur n false; now
problem is; i face an error describing 'cbounittypes is either null or
not an object' when i see view source, firefox and IE showing
different source code.firefox is showing right. but IE not. what's
reason??
----- viewsource using firefox
<select name="cboUnitTy pes" onchange="javas cript:return
ConfirmDeleteIm age();__doPostB ack('cboUnitTyp es','')"
language="javas cript" id="cboUnitType s"
class="TextFiel dNormalForPrope rty">
<option selected="selec ted" value="0"></option>
<option value="396">34</option>
<option value="405">not hing</option>
<option value="412">tes t</option>
</select>
----- viewsource using IE
<select name="cboUnitTy pes" onchange="javas cript:return
ConfirmDeleteIm age();__doPostB ack('cboUnitTyp es','')"
language="javas cript" id="cboUnitType s"
class="TextFiel dNormalForPrope rty" style="width:20 0px;">
</select>
my dropdownlist 'cboUnitTypes' is populating on the base of another
dropdownlist1, i have to apply a check on 'cboUnitTypes' like
if(cboUnitTypes[cboUnitTypes.se lectedindex].value==0)retur n false; now
problem is; i face an error describing 'cbounittypes is either null or
not an object' when i see view source, firefox and IE showing
different source code.firefox is showing right. but IE not. what's
reason??
----- viewsource using firefox
<select name="cboUnitTy pes" onchange="javas cript:return
ConfirmDeleteIm age();__doPostB ack('cboUnitTyp es','')"
language="javas cript" id="cboUnitType s"
class="TextFiel dNormalForPrope rty">
<option selected="selec ted" value="0"></option>
<option value="396">34</option>
<option value="405">not hing</option>
<option value="412">tes t</option>
</select>
----- viewsource using IE
<select name="cboUnitTy pes" onchange="javas cript:return
ConfirmDeleteIm age();__doPostB ack('cboUnitTyp es','')"
language="javas cript" id="cboUnitType s"
class="TextFiel dNormalForPrope rty" style="width:20 0px;">
</select>
Comment