![]() |
:
I want it so that when someone selects an option the text changes accordingly i had it working so the text changed but the comparison is not working and so therefore always gives teh second result instead of the first one when you go on the 1 option... |
First of all, div tags end in </div>, not </span>. And instead of using document.all.blah, use document.getElementById("blah").
|
fair enough i did know the end div tag thingy i was just being gay and tried to use span fiorst, but still i cant get the current value from the list box
|
:
thats my javascript.html exactly as it is on the tin. the error i am getting is Line : 15 Char: 3 Error : 'document.getElementById(...)' is null or not an object Code: 0 URL: about:blank |
Then I have no idea - that code should work, apart from one thing - you have to define Item using var Item.
|
| All times are GMT -5. The time now is 9:14 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC