javascript – Trying change css content with jquery but not working

html - Animation after toggling doesn't apply the second style

I have this configuration on h3 tag

h3 {
    text-transform: uppercase;

    font-family: "Font Awesome 5 Free";
    content: "f041"

And when I wanna change this on jquery event

    var unicode = $('#uunicode').val();
    var cor = $('#ccor').val();
    var tamanho = $('#ctamanho').val();
    'content': unicode,
    'color': cor,
    'font-size': tamanho


The alert content return me “normal”, all the others css atributes is working, just the “content” attr is not working, someone know’s why?

This image is for if someone have curiosity to see what I wanna do

Source link

Leave a reply

Please enter your comment!
Please enter your name here