I want to put the value of javascript variable inside a class of </a>.
<script type="text/javascript">
$('#sp-pt-151').countdown('2016/09/02', function(event) {
$(this).html(event.strftime('%n'));
var dd = event.strftime('%n');
});
</script>
HTML
<a href="#"class="avatar-container p-dd personal">
<img src="images/train.png" alt="" width:"100px" hieght:"100px" class="avatar"/>
</a>
As you can see in the "a" element class p-dd. I want the value of dd in it.