Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

click on div with class javascript

<!--In html:-->
<div class="myDiv with_this_class" > any text </div>
<script>
  var divClicked = document.querySelector('.myDiv.with_this_class').click();
</script>
 
PREVIOUS NEXT
Tagged: #click #div #class #javascript
ADD COMMENT
Topic
Name
7+9 =