Code for adding a css class to an element?

Kmandapalli
Posted by Kmandapalli under jQuery category on | Points: 40 | Views : 388
$('#' + id + ' a').addClass('jq4ubutton');
$('#' + id + ' .clickmsgbtn').bind('click', function (e) {
e.preventDefault();
$(this).after( & amp; quot; & lt; span class = 'clickmsg'
style = 'color:green;margin-left:5px;' & gt; Click! & lt;
/span>");
$('#'+id+' .clickmsg').fadeIn('slow').delay(1000).fadeOut('slow').empty();
});

Comments or Responses

Login to post response