C
CreativeMind
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.selectedindex].value==0)return 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="cboUnitTypes" onchange="javascript:return
ConfirmDeleteImage();__doPostBack('cboUnitTypes','')"
language="javascript" id="cboUnitTypes"
class="TextFieldNormalForProperty">
<option selected="selected" value="0"></option>
<option value="396">34</option>
<option value="405">nothing</option>
<option value="412">test</option>
</select>
----- viewsource using IE
<select name="cboUnitTypes" onchange="javascript:return
ConfirmDeleteImage();__doPostBack('cboUnitTypes','')"
language="javascript" id="cboUnitTypes"
class="TextFieldNormalForProperty" style="width:200px;">
</select>
my dropdownlist 'cboUnitTypes' is populating on the base of another
dropdownlist1, i have to apply a check on 'cboUnitTypes' like
if(cboUnitTypes[cboUnitTypes.selectedindex].value==0)return 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="cboUnitTypes" onchange="javascript:return
ConfirmDeleteImage();__doPostBack('cboUnitTypes','')"
language="javascript" id="cboUnitTypes"
class="TextFieldNormalForProperty">
<option selected="selected" value="0"></option>
<option value="396">34</option>
<option value="405">nothing</option>
<option value="412">test</option>
</select>
----- viewsource using IE
<select name="cboUnitTypes" onchange="javascript:return
ConfirmDeleteImage();__doPostBack('cboUnitTypes','')"
language="javascript" id="cboUnitTypes"
class="TextFieldNormalForProperty" style="width:200px;">
</select>