I'm having some HTML being output in a PHP file:
echo "<button class=\"ui-btn ui-mini\" id=\"showFooter\">click</button>
<div id=\"slideshow-nav\">
<button data-icon=\"home\" data-iconpos=\"notext\" data-mini=\"true\" data-inline=\"true\">Home</button>
<button data-icon=\"arrow-l\" data-iconpos=\"notext\" data-mini=\"true\" data-inline=\"true\">Previous</button>
<button data-icon=\"arrow-r\" data-iconpos=\"notext\" data-mini=\"true\" data-inline=\"true\">Next</button>
<button data-icon=\"minus\" data-iconpos=\"notext\" data-mini=\"true\" data-inline=\"true\">Pause</button>
<button data-icon=\"refresh\" data-iconpos=\"notext\" data-mini=\"true\" data-inline=\"true\">Resume</button>
</div><!-- /slideshow-nav\ -->"
As an event for the click button, I have:
$(document).ready(function() {$("#showFooter").click(function(){
$("#slideshow-nav").toggle();
});});
which works fine when I put both together in an HTML file but the function does not get executed after I load the HTML output from the PHP script. No errors being displayed in the console what so ever.
By the way what I wanna do is providing displayable navigation to a jQuery Cycle2 slideshow. If anyone know a good plugin or a neat way to do this, please let me know. I don't want code but maybe a hint what to look for.