sounds like you're trying to bind to a select
dropdown. the best way to accomplish this is the onChange()
handler (see the docs for details).
from there, you would simply determine which option had been selected based on the current value (probably obtained via the .val()
method) and perform an action based on that value, using an series of if statements or another method.