• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7420
  • Last Modified:

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

How do I code the change event on a select2 dropdown?
0
cbrune
Asked:
cbrune
  • 6
  • 3
1 Solution
 
leakim971PluritechnicianCommented:
$("#YOUR_DROPDOWN_ID").change(function() {
    alert( $(this).val() );
})

Open in new window

0
 
cbruneAuthor Commented:
it doesnt work on a select2 dropdown
0
 
leakim971PluritechnicianCommented:
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
leakim971PluritechnicianCommented:
0
 
cbruneAuthor Commented:
your not using the select2 plugin...it converts options to <ul> tags
0
 
leakim971PluritechnicianCommented:
I don't know the plugin you're talking about...
0
 
cbruneAuthor Commented:
0
 
leakim971PluritechnicianCommented:
0
 
leakim971PluritechnicianCommented:
The doc : http://ivaynberg.github.com/select2/#documentation
search for : on("change"
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 6
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now