CodeIgniter Forums

Full Version: jquery script help ...
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]pdxbenjamin[/eluser]
I have a big list of tags for posts, and they look something like this, coming from a foreach so there could be a lot of them
Code:
<div id="$id_tag" class="tagWrap">
<div class="tagRight"></div>
<div class="tagLeft">$tag_text</div>
</div>

But what I'm trying to do is in jquery on .mouseover() make just the one moused over fade so I can show a delete button.
I don't know how to get the id from .tagWrap ??

Code:
$(document).ready(function() {
$('.tagWrap').mouseover(function() {
  $('.closeButton').slideDown(200);
});
});

Thanks

El Forum

[eluser]CodeIgniteMe[/eluser]
where is .closeButton located in the XPATH? Do you have a .closeButton for every post? or you have only one .closeButton for all then make it beside the post when you mouseover? This seems like this should be in the jQuery forums. But could you send at least a complete view of your HTML with at least only two posts?