I’m trying to use jquery to select a select menu that is under a parent div. I keep getting nothing returned though.
$('#content_container > .vendor_address_select');
what is incorrect here?
Thanks!
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.
You don’t need to have the greater than sign. This will apply to all the descendants of
content_containerwith the class ofvendor_address_selectThis method is using
jQuery Descendant Selector (“ancestor descendant”). It is referenced here in the docs.Mad Echet has a great point that
>means that.vendor_adress_selectis a child of#content_container