syntactic form $('foobar')

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • grimpen
    New Member
    • Dec 2011
    • 1

    syntactic form $('foobar')

    hello,

    in the code scrap:
    $('foobar').rem ove();

    what does the syntactic form $('foobar') mean?

    what is it called and where can it be found in the documentation?

    i can not find it in the ecmascript standard 5.1:
    http://www.ecma-international.o rg/publications/files/ECMA-ST/Ecma-262.pdf
    maybe because i do not know what it is called
    - but searching on '$(' does not turn up anything relevant.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    i can not find it in the ecmascript standard 5.1:
    that’s because it is a call to a JavaScript framework (jQuery, prototype). check the framework’s documentation for the exact description.

    $('foobar').rem ove(); means: apply the remove() method (corresponds to DOM’s removeChild()) to every <foobar> element.

    Comment

    Working...