S
S
sergo5732021-06-15 22:58:48
JavaScript
sergo573, 2021-06-15 22:58:48

Hiding the block, when selecting any in?

Good evening!

There is a div block with id="vybor", there is also a select with id="heyhey".
There is a script:

<script>
$(document).ready(function() {
$("#heyhey").on("change",function(){
        if($(this).val() )
             document.getElementById("vybor").style.display="none";
    })
})
</script>

Which closes the div block when any option is selected.
All this is inserted on the Wordpress site, through the elementor constructor.

The question is, everything works in the elementor editor, but not on the page itself...
What could be the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question