I have been staring at this for one hour and not sure what is wrong with this syntax:
jQuery.each(ARRAY_SUB_METRICS_HIDE, function() {
var VALUE = this;
\$("div[id^='reportdate-'" + VALUE + "]").hide();
alert(VALUE);
});
my div tags are not hiding , example VALUE = 9–0–2 while i have div tags with id=”9–0–2–3″
You have to move the single-quote character:
Currently, your final selector looks like
$("div[id^='reportdate-'902]")(notice the wrongly placed quote).