How can I detect if I’m clicking on the class “flag en”
I usually do $(‘.class’).click(function(){ command }); but this class is “flag en”, and if I try with $(‘.flag en’) it is not working;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
flag enis two seperate classes. Try changing your selector to this:$('.flag en')would match anenelement (no such thing) that is a descendant of an element with theflagclass. By changing it to.flag.enyou are specifying an element that has both theflagand theenclasses.