html - how do you add a class and change css in javascript code -
i need change css rgba , reload class fadeinupbig ....., using javascript ... <script> $('.tile.bg-darkblue').on('click', function () { $(".tile").addclass("flipoutx"); settimeout(function(){ $("#colorscreen").css('background-color', 'rgba(255, 255, 255, 0.6)'); $("fadeinupbig").replacewith("fadeinupbig"); $(".tile-group.one").css({ marginleft:"-40px", width: "1080px"}).load("musability-musictherapy-company-overview.html"); }, 1000); }); </script> the replacewith poor attempt @ reloading fadeinupbig once color has been changed. usefull. i have re-edited latest version doesn't work .... putting dots before class not requried understanding here latest <script> $('.tile.bg-darkblue').on('click', function () { $(".tile").addclass("flipoutx"...