1
Is this practicable? Or have any suggestions without jQuery UI plugins?
HTML CODE:
<div class="minhaclasse">
<p class="titulo">Título<br>resumo<br></p>
<p class="outros"> texto de descrição </p>
</div>
<div class="minhaclasse">
<p class="titulo">Título<br>resumo<br></p>
<p class="outros"> texto de descrição </p>
</div>
CSS CODE:
p.titulo{ cursor: pointer}
p.outros{display:none}
jQuery Code:
$(document).ready(function(){
$(".titulo").mouseover(function(){
$(this).siblings(".outros").css("display", "block");
});
});
Um, but I wouldn’t like to add or remove the class. Just show/not show. In my application, I need to keep the class.
– Marcelo Aymone
@Marceloaymone, like this: http://jsfiddle.net/n9SNr/ ?
– Sergio
in this way was perfect.
– Marcelo Aymone
@Marceloaymone, great. I added that option to the answer.
– Sergio
Thank you very much...
– Marcelo Aymone
@Marceloaymone, I’m glad I helped. If the answer solves your problem can mark as correct.
– Sergio