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
Thanks
code.doc
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>>the javascript should make the div visible or invisible and also should change the label control text to whatever iam assigning to it.
???
???
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.
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.
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.
javascript:Dropdown(this.v
instead of just:
javascript:Dropdown(this)