Question : How to get element whose part of ID known in JQUERY

Hi,

How to get element whose part of ID known in JQUERY

I know this $("input[id*='man']")  to get an input element whose id contains man

but I require some generic code to get any element not only input type elements

Answer : How to get element whose part of ID known in JQUERY

Hi,

I think you're after the all selector, which is a plain asterisk in place of the element name in your example...

Hope that helps!
1:
$("*[id*='man']")
Random Solutions  
 
programming4us programming4us