.click(function()); does not work
Hi there :)
I have here the simpelest jQuery script:
-
<script type="text/javascript">
$(document).ready(function(){
$('#pageBttnNext').click(function(){
$('#viewImages').empty();
});
return false
});
</script>
And here my html code:
-
<div class="images">
<p>Selected parameters: depot / date / tour:<br /> <strong><?php echo $dep." | ".$selec ?></strong></p>
<ul>
<li id="pageBttnPrevious"><a href="#" id="pageBttnPrevious">« Back</a></li>
<li id="pageBttnNext"><a href="#" id="pageBttnNext">Next »</a></li>
</ul>
</div>
<!-- VIEW IMAGES -->
<div id="viewImages">
<?php
require_once("viewImages.php")
?>
</div>
For some reason the click does nothing.