javascript - Simulate a click on js -


i have problem on website. have <div id="test"> display:none default.
now, when click on button changes display:block, in div popup displayed disappears when make click.
need simulate click div not show.
tried :

<script>   document.getelementbyid('test').setattribute('class','display-block');   document.getelementbyid('test').click(); </script> 

but not work.

// element click execute display    $('#button').on('click', function(){             $('#test').css('display','block'); }); 

Comments

Popular posts from this blog

html - height not adding height to a empty div -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

python - Robot Framework location and name of keyword -