I have a button that shows a dropdown menu when clicked. This code works on pages that are loaded with data-ajax="false"
:
$('#btnMainMenu').live('click', function() {
$('#dpMainMenu').selectmenu('open');
});
But there are some anchors on the website where data-ajax="true"
, so whenever the users load those pages - the codes above doesn't seem to work.