I think something like this is what you are looking for.  It adds a
click function to the elements with view and hide classes, which shows/
hides the text, uses end to get back the initial object, next to get
the next one and show/hide it and finally hides itself.  It should
work, but I didn't test it.

$('.view').click(function(){
  $(this).prev(".more").hide().end().prev().show().end().hide();
});

$('.hide').click(function(){
  $(this).prev(".more").show().end().next().show().end().hide();
});


Reply via email to