List and onlclick

I have this link that when clicked becomes a dropdown. What I would like
is to have it so that when a selection is ‘clicked’ on that dropdown
turned backinto a link with the select thing as the link text. My idea
was to use ‘onclick’ to call a method - something like this:

:onclick => {:action => ‘set_exclude_airline_1’}

Everything compiles but it doesn’t work as expected. I guess my question
is can I even do this? And does anyone have any sugestions on how to get
this to work? Thanks,

-S