Possible Duplicate:
jquery or css selector? select all id’s that start with
I need to select all the elements with ids that start with "Monday_"
, example id="Monday_16"
Possible Duplicate:
jquery or css selector? select all id’s that start with
I need to select all the elements with ids that start with "Monday_"
, example id="Monday_16"
You can use attribute starts with
selector:
$("[id^='Monday_']");
or better:
$("tagname[id^='Monday_']");
You can use the attribute starts with selector to accomplish that:
$('[id^="Monday_"]')