jQuery addClass example
Change class name on click in jQuery
HTML
<div class="{c}" style="background-color: red">
hello
</div>
JavaScript
$(".\\{c\\}").fadeOut(2000)
<div class="{c}" style="background-color: red">
hello
</div>
$(".\\{c\\}").fadeOut(2000)