Semper Phone

Effortless
LEARNING

  • Improve effortlessly – just by living your life
  • Learn while waiting for your apps to load
  • Recommended by 5 universities
  • Community of over 1,000,000 learners
  • 50,000+ expert-made packs, or create your own
"One of the best learning apps" - CNET
  • Apple Play Store
  • Install Semper from the Play Store
jQuery API

jQuery API

Last update 

Memorise jQuery's documentation through this command-function reference pack!

Items (11)

  • A class to search for. An element can have multiple classes; only one of them must match.

    $(".class_name")

  • An ID to search for, specified via the id attribute of an element.

    $("#id_name")

  • An element to search for. Refers to the tagName of DOM nodes.

    $("HTML_element")

  • Selects all elements.

    $("*")

  • Selects the combined results of all the specified selectors.

    $( "selector1, selector2, selectorN" )

  • Get the value of an attribute for the first element in the set of matched elements.

    $(elem).attr(attributeName)

  • Get the value of a property for the first element in the set of matched elements

    $(elem).prop(propertyName)

  • Remove an attribute from each element in the set of matched elements.

    $(elem).removeAttr( attributeName )

  • Remove a property for the set of matched elements.

    $(elem).removeProp( propertyName )

  • Get the current value of the first element in the set of matched elements or set the value of every matched element.

    $(elem).val()

  • Get the children of each element in the set of matched elements

    $(elem).children()