if ($('#voting697 > .already-voted').length == 0) { $('#result697 + a').after('Already voted!'); }