onclick setAttribute seperately for postComment