problem with parent()

problem with parent()

problem with parent()

jQuery Code http://webdev.faressoft.org/wp-content/plugins/ImageSlideShow/js/slideShow.js

You can see the result here (Image Slide Show) http://webdev.faressoft.org/?p=208

  1. $(".ImageNum span").click(function() {
          var image = parseInt($(this).text());
          $(".correntImage", $(this).parent()).removeClass("correntImage");
          $(this).addClass("correntImage");
          $(this).parent().parent().children("img").css("display","none");
          $(this).parent().parent().children("img").slice(image-1,image).css("display","block");
          $(this).parent().parent().children(".autoSlideShow").text("false");
    });

why nothing change when i click on $(".ImageNum span") ?