SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    problem with onclick

    The small img has an onclick event in it, but won't click. I'll bet it's something simple, but I don't see it.

    Here's the link:http://www.savebop.com/test_120810.php

  2. #2
    SitePoint Evangelist hexburner's Avatar
    Join Date
    Jan 2007
    Location
    Belgium
    Posts
    591
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi nichemtktg,

    Looks fine to me.
    You might experience problems when using console.log in browsers that do not have a console or have other methods to output data to a console.
    By removing the lines containing console.log you should be fine in those ancient browsers.

    If you want cross-browser support for console.log, you could try http://patik.com/blog/complete-cross...r-console-log/

    Best regards,
    Vincent
    FOR SALE: 1 set of morals, never used, will sell cheap

  3. #3
    SitePoint Evangelist
    Join Date
    Jun 2010
    Posts
    453
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You must've just clicked on my link after I found a solution. Turns out there's no value attribute for a div have to go with data-value.

    Thanks for your help.

    Niche


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
  •