I’m unable to select page contents through class in jQueryMobile.
$('div[data-role="content"]'); works fine
$('div.ui-content'); only selects a few
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.
jQuery Mobile adds the class when it enhances the page. You might be calling the selector before the enhancement is done (I won’t guess no more, it’s your app 😉 )
the correct way to get all the content nodes is: