cant make a button rotate its parent column with javascript in elementor

Question

im trying to insert JS code to elementor in order to make a column rotate on a button click created this code:

<script type=”text/javascript”>
$('.blog_click').click(function(){
    if($(this).hasClass('active')){
document.getElementById(".column_rotate").style.transform = "rotate(90deg)";}
} else {
        $(this).addClass('active')
}
</script>

but it didnt work for some reason… anyone have any idea ?

0
user195023 4 months 0 Answers 11 views 0

Leave an answer