SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: jquery newbie

  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jquery newbie

    I am trying to show/hide a div inside a li.

    HTML Code:
    <li><a class="outlink" href="javascript:void(0);" onclick="change_video(4);change_image(4);" title="test"><img src="images/thumbs/4.png" alt="" /><div class="text"><strong>Organize</strong> dances for all your non-MBA’d friends’ weddings.</div>
          </a>
            
    </li>
    .text is set to display:none

    here is the js im tyring to use:

    Code:
    $(".outlink").hover(
    	function () {
        $(this).find("#text").show();
      }, 
      function () {
       $(this).find("#text").hide();
      }
    any help would be great
    NOEINK
    <Think Without Ink>

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2002
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry - copied wrong code:

    $(".outlink").hover(
    function () {
    $(this).find(".text").show();
    },
    function () {
    $(this).find(".text").hide();
    }
    NOEINK
    <Think Without Ink>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •