I´ve used something like this
$(document).ready(function(){
$("#Fecha<?php echo $i; ?>").click(function(){
$("#DivProduto<?php echo $i; ?
>").removeClass("DivImgVisible").addClass("DivImgNotVisible");
});
$("#carrega<?php echo $i; ?>").click(function(){
$("#imagem<?php echo $i;
?>").load("retorna_imagem.php?img=<?php
echo htmlspecialchars( stripslashes($row['IMG_PRODUTO'])); ?>");
$
(".DivImgVisible").removeClass("DivImgVisible").addClass("DivImgNotVisible");
$("#DivProduto<?php echo $i; ?
>").removeClass("DivImgNotVisible");
$("#DivProduto<?php echo $i;
?>").addClass("DivImgVisible");
});
});
and It works ! Thanks a lot for help to start my idea
On 17 ago, 18:45, Justin Sepulveda <[EMAIL PROTECTED]> wrote:
> What you're looking for sounds a lot like tab functionality. I think
> you could pull it off using Klaus's tab plugin.
>
> http://www.stilbuero.de/2007/05/14/tabs-plugin-more-flexibility/
>
> On Aug 17, 1:21 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > hi friends,
>
> > I have a product list... when the user click on a product i wanna show
> > the respectly div for this product..(photo) and hide all the one that
> > are visible.....(for the case the user forget to close them)
>
> > how can i do it ?