I've got several elements on the page. Some of the have name id like this component1
,component2
and etc.
How to get all this elements(elements with names which start with component
) using jquery?
use ^
selector
var elements = $('[id^="component"]')