esk
September 22nd, 2005, 06:15 AM
I have this code and i have been trying to get it to work for a while now......
I am not an advanced programmer by a long shot but i am trying.........
i am trying to show a table once a DDlist item has been selected (onchange)
this is the Jscript.
<script type="text/javascript" language="Javascript">
function Navlink() {
var list = document.myform.ddOffices;
var listValue = list.options[list.selectedIndex].value;
listValue.style.display='block';
}
</script>
which i want to activate this:
table cellpadding="0" cellspacing="0" border="0" width="50%">
<tr>
<td id="Altrincham" style="display: none">
<table class="tableborder" width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap class="bodyfont" colspan="2">ALTRINCHAM</td>
</tr>
myform is the form name and ddoffices is the DDlistmenu's ID:
<select name="ddOffices" class="selecttag" id="ddOffices" onchange='Navlink()'>
any ideas??
i get style is null or not an object
I am not an advanced programmer by a long shot but i am trying.........
i am trying to show a table once a DDlist item has been selected (onchange)
this is the Jscript.
<script type="text/javascript" language="Javascript">
function Navlink() {
var list = document.myform.ddOffices;
var listValue = list.options[list.selectedIndex].value;
listValue.style.display='block';
}
</script>
which i want to activate this:
table cellpadding="0" cellspacing="0" border="0" width="50%">
<tr>
<td id="Altrincham" style="display: none">
<table class="tableborder" width="50%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td nowrap class="bodyfont" colspan="2">ALTRINCHAM</td>
</tr>
myform is the form name and ddoffices is the DDlistmenu's ID:
<select name="ddOffices" class="selecttag" id="ddOffices" onchange='Navlink()'>
any ideas??
i get style is null or not an object