I have a problem with JavaScript/Jquery/Jquery Mobile:
I want to build a Sidebarnavigation, I am using slidr. If I check whether the document is ready or not with
$(document).ready
or
document.addEventListener('DOMContentLoaded', function(){})
my buttons turn into normal html buttons, if I don't use $(document).ready
or document.addEventListener('DOMContentLoaded', function(){})
the buttons looks like jQuery Mobile buttons. In both ways that:
$('#navigation >#navtag>#menu').click(function(){alert("H");});
doesn't work.
This is the whole file: http://pastebin.com/dtZfgAgd
I am using slidr. I am developing an app for android (cordova)