How can I tell jquery to hide all id's starting with #ms_
?
What I've tried
$("#ms_" + $("*")).hide();
$("#ms_" + "*").hide();
$("#ms_" + *).hide();
How can I tell jquery to hide all id's starting with #ms_
?
What I've tried
$("#ms_" + $("*")).hide();
$("#ms_" + "*").hide();
$("#ms_" + *).hide();
Use the attribute starts with selector :
$('[id^="ms_"]').hide();