matt t
11-12-2007, 03:08 PM
ok I am trying to call a function that does some things with a table from a select box. Everytime I do this I get an error message that a variable called new_count is not an object.
[code]
<table>
etc...
<select name ="blah id ="blah" onchange ="Afunction()"><option>none</option><option>withdrawl</option></select>
etc..
<table>
Afunction();
{
while this function is called
{
new_count
}
<select name ="blah" +new_count id ="blah" +new_count onchange =" SomeFunction(new_count)"><option>none</option><option>withdrawl</option></select>
}
Some Function(new_count)
{
document.getElementById('blah' + new_count).focus();
}
[code]
<table>
etc...
<select name ="blah id ="blah" onchange ="Afunction()"><option>none</option><option>withdrawl</option></select>
etc..
<table>
Afunction();
{
while this function is called
{
new_count
}
<select name ="blah" +new_count id ="blah" +new_count onchange =" SomeFunction(new_count)"><option>none</option><option>withdrawl</option></select>
}
Some Function(new_count)
{
document.getElementById('blah' + new_count).focus();
}