I have to buttons, image input that work fine when in the markup like this,
<input type="image" class="play" src="images/play.png" />
<input type="image" class="pause" src="images/pause.png" />
But as soon as I try to prepend() it to a generated they still appear, but the click function does not work anymore.
$('.gallery-nav').prepend('<input type="image" class="play" src="images/play.png" /><input type="image" class="pause" src="images/pause.png" />');
Any idea why? Thank you.