I am using Increase and decrease for zoom image but i want to show decrease when user clicks the image. When I tried this code; decrease is not working ..why?
<script type='text/javascript'>
$(window).load(function(){
var cell = $('#pok');
$('.increase').click(function(){
cell.height(cell.height()+20);
$(".title").html('<a href="#" class="decrease">Decrease</a>')
});
$('.decrease').click(function(){
cell.height(cell.height()-20);
});
});
</script>
<img src="/41.jpg"id="pok"class="increase"><span class="title"></span>