I have the following:
if($("div[id*='*test-*-0-value']").length > 0){
// do stuff
}
Unfortunatly the wild card *test-*-0-value isn’t working. What’s the best way to do a search so that i can test for any ID value that has *test-*-0-value
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 can combine the attribute selectors, which are also natively supported in CSS:
[id*='...']– The id must contains....[id$='...']– The id must end with....Code: