Link to home
Start Free TrialLog in
Avatar of gladstonesheeba
gladstonesheeba

asked on

Fire JAvascript On Dropdownlist selected index changed

Please Find my Attached file contains the actual code . iam trying to write a javascript code that should fire when a user selects an item from the dropdown list. i have two div tags that should visible or invisible depending on the user selection from the dropdown. but my code is not doing anything. its not giving any javascript error also. i don't know what's wrong with that. please help me out to do this.

Thanks

code.doc
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Perhaps you meant:
javascript:Dropdown(this.value)

instead of just:
javascript:Dropdown(this)
ASKER CERTIFIED SOLUTION
Avatar of gladstonesheeba
gladstonesheeba

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
>>the javascript should make the div visible or invisible and also should change the label control text to whatever iam assigning to it.
???
Avatar of gladstonesheeba
gladstonesheeba

ASKER

if a user selects an item from the dropdownlist say the values is "Product" then i have to change the label control text ="Product"

the javascript  function()
                     label.text="Product"

how to do this in javascript.
>>i have to change the label control text
It sounds like you want to change a server control property. I can't help you with that. If you wanted to change some label on the client-side, then I could help you, but I would need to see the html that is generated by your page.