I got this line in my script, which check the items class:
$('#post').attr('class');
Is there a chance, to read it like:
$('#post*').attr('class');
So if the ID will be fe. post405 it will still read this?
I’ve checked it and it won’t work with * , so so there any other way to read items this way?
You’re looking for the
[attribute^=*]selector.