I currently have a wordpress blog that assigns a number to each one of its posts.. It also takes this number and applies it to the container that the post sits in like so "post-813"
Is there a way with jQuery to where I can say.. If the class is post-810 or greater, add class "new" ??
Thanks
<div class="post-813 category-uncategorized">
...
</div>
Edit:
I was actually able to get it to print an ID like so:
<div id="post-810">
I was able to get the first ID, but now I need to do it for each. How is this possible?
var number = $('div.post').attr("id");
var trimmed = number.replace("post-", "");