i have simple code:
jQuery(document).ready(function(){
url = document.location.href.split('#');
if(url[1] === 'button-show-modal'){
console.log('true');
jQuery('#button-show-modal').click();
}
)
So when page is loaded i see in console true, but no modal appears... If i run jQuery('#button-show-modal').click(); by myself modal appears as it should so generally click event doesn't appear. Where could be the problem?