Link to home
Start Free TrialLog in
Avatar of cbrune
cbrune

asked on

How do I code the change event on a select2 dropdown?

How do I code the change event on a select2 dropdown?
Avatar of leakim971
leakim971
Flag of Guadeloupe image

$("#YOUR_DROPDOWN_ID").change(function() {
    alert( $(this).val() );
})

Open in new window

Avatar of cbrune
cbrune

ASKER

it doesnt work on a select2 dropdown
Avatar of cbrune

ASKER

your not using the select2 plugin...it converts options to <ul> tags
I don't know the plugin you're talking about...
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

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