Fire javascript from dropdownlist selectedindexchanged

B

blarfoc

Hi, I want to use javascript (not postback = true) to be fired when I
do a selected index changed from a drop down list.

How do I do that?

Thank you,
Antonio
 
K

Kim Quigley

I didn't test this code, but this is basically what you need

DropDownList1.Attributes.Add("onChange", "YourFunction()").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top