Noone mentioned it so far, but this kind of question is better suited
to the jquery-en group. This group is for discussion on development of
jQuery itself.

As you already know, .quantite is not a child of 'this' (img). You
have to traverse up to the common parent:

$(".plus, .moins").click(function (){
  var $input = $(this).parents('div.blocDroit:first').find
("input.quantite");
  var quantite = $input.val();
  $(this).is('.plus')
      ? quantite++
      : quantite--;
  $input.val( Math.max(quantite, 0) );
  calculMontantPanier();
});

cheers,
- ricardo

On Apr 1, 10:12 am, elpatator <romain.simi...@gmail.com> wrote:
> Problem is, my previous devs, plugin use, and basically all my site is
> based on 1.3.2. I'll have to deal with it.
> But this selection problem really is tricky for someone strating like
> me :
> $(this).find('> .quantite')   does'nt seem to work, without even any
> error warnings messages.
> I guess I should try something else, but again, me being here is a
> clue that I'm not as good as you guys, so more help would be
> appreciated.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to