I have the following:
if($(\"div[id*=\'*test-*-0-value\']\").length > 0){ // do stuff }
Unfortunatly the wild card *test-*-0-v
*test-*-0-v
You can combine the attribute selectors, which are also natively supported in CSS:
[id*='...']
...
[id$='...']
Code:
if ($("div[id*='test-'][id$='-0-value']").length) { // do stuff }