what does $$ mean in Javascript?

Discussion in 'OT Technology' started by babygodzilla, Jun 13, 2008.

  1. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    anyone know? I googled it, nothing helpful came up. thank you
     
  2. SLED

    SLED build an idiot proof device and someone else will

    Joined:
    Sep 20, 2001
    Messages:
    28,118
    Likes Received:
    0
    Location:
    AZ, like a bauce!
    It's part of the Prototype library. I think it's a DOM searching function
     
  3. babygodzilla

    babygodzilla I love rice

    Joined:
    Nov 5, 2001
    Messages:
    3,108
    Likes Received:
    0
    oh ok. that's why i couldn't find it in any JS documentations. ive only seen $$ in PHP. so weird...
     
  4. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    Its slang. It means a client paying $100+
     
  5. whup

    whup I wish you had children and.. so that I could step

    Joined:
    Feb 12, 2007
    Messages:
    1,603
    Likes Received:
    0
    Most javascript libraries use that sort of syntax.

    $() usually takes an element or element id and returns the element object.
    $$() usually takes some css selector, and returns the array of matching elements.

    It's likely he's using the Prototype library

    http://www.prototypejs.org/api/utility#method-$$
     

Share This Page