Answers for "jquery click event being called when page loads"

1

trigger a click on page load jquery

$("document").ready(function() {
	$("button").trigger('click');
});
Posted by: Guest on March-06-2020
0

jquery on load button click

<script type="text/javascript">
$(document).ready(function(){
    $("#modal").click(); 
});
</script>
Posted by: Guest on September-15-2021

Code answers related to "jquery click event being called when page loads"

Code answers related to "Javascript"

Browse Popular Code Answers by Language