N
Niall Linden
i have dynamically created select boxes. now i have an onchange method
that is called. eg <select name="textno" onChange="changeText()" >
now my problem is what happens when there is 1 item in the select. the
item is by delault (i think) selectes, ie the box showws the value.
this means that you cannot select it, and because it hasnt vchanged,
the onchange function doesnt work. ive tried the onselect function but
it doesnt work either.
is there any way to call a javascript function if there is only 1 item
in the drop down select when it is highlighted/selected. ideally it
would work for multiple lists
niall
that is called. eg <select name="textno" onChange="changeText()" >
now my problem is what happens when there is 1 item in the select. the
item is by delault (i think) selectes, ie the box showws the value.
this means that you cannot select it, and because it hasnt vchanged,
the onchange function doesnt work. ive tried the onselect function but
it doesnt work either.
is there any way to call a javascript function if there is only 1 item
in the drop down select when it is highlighted/selected. ideally it
would work for multiple lists
niall