Changing font color on click when using Cufon and Jquery

Changing font colour on click when using Cufon and Jquery it’s an easy task. I have faced some problem with Cufon and Jquery. When I tried to change the font colour using jQuery CSS , It’s not working.

Solution

I have added Cufon.refresh(); after the colour change function. It has been solved my problem.

For instance.

$("button").click(function () {
$('div').css('color','green');
Cufon.refresh();
});
Editorial Staff
 

Editorial Staff at tutsplanet is a dedicated team to write various tutorial articles.