I\'m trying to select an id that changes on different posts of same page. So the they have been given an id=\"show_posts_{PostID}\" - on the final output the {PostID} is re
just use $("#show_posts_"+postID)
$("#show_posts_"+postID)