SitePoint Sponsor

User Tag List

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

    jquery .. i don't get it..

    hi guys .. do you know why this keeps bugging out?

    Code:
    $(document).ready(function() {
            $("img.subCollection").click( function () {
                            var src = $(this).attr("src")
    
                            $("#bigpic").empty()
                                        .html("<a href=\"\" id=\"close\"><img src=\"\/img\/delete.jpg\" id=\"close\" border=0 style=\"float:right;\"  /><\/a><center><img src=\"" + src + "\" id=\"pop\" style=\"border:solid 1px lightgray;\" /><\/center>")
    
    
            });
            $("a#close").click( function ()
            {
                $("#bigpic").empty();
                return false;
            });
        });
    I always get "Object doesn't support this property or method"

    thanks in advance..
    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)
    nevermind.. I found it.. it was a typo..
    the neigbours (free) WIFI makes it just a little more fun


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
  •