Trigger click function on load
javascript, jquery
Solution
Yes.
$(document).ready(function(){ // on document ready
$(".results .view-rooms").click(); // click the element
})
Problem
I have the following function which is activated on click: ``` $('.results .view-rooms').click(function(){ } ``` Is there anyway I can trigger this function on document load?