SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    jquery click not working

    hi all

    can you see what is wrong here?

    i'm trying to list a number of img thumbs .. and onclick the the larger on in a div above the list..

    Code:
     $("A#colMini").Click(function() {
                $("#bigpic")
                    .hide()
                    .html()
                    .load("ajaxResponse.php?action=subCol&id="+this.id)
                    .show();
                });
    HTML Code:
    <div id="bigpic"></div>
    <ul class="HLportfolio">
    <li class="hlSub"><a href="/item1" id="7" class="colMini" >
    <img src="/upload/image.jpg"  border=0 class="subCollection" alt="desc" /></a>
    </li>
    </ul>
    the neigbours (free) WIFI makes it just a little more fun

  2. #2
    SitePoint Guru
    Join Date
    Aug 2001
    Location
    Amsterdam
    Posts
    788
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    it's giving an error that click isn't a property..
    the neigbours (free) WIFI makes it just a little more fun

  3. #3
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    187
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You typed "Click" instead of "click". Javascript is case sensitive.


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
  •