_.clss

Function Description
Clss has one or two input parameters.For one parameter, it returns elements with the given class from document.body. For two parameters, it returns elements with the given class from second parameter.
Function prototype
_.clss(clss, context). If @context defined, it returns elements with @clss from @context else document.body.
Function parameters
@clss - dom class attribute value
@context - context that is applied, it is an html element
Sample HTML DIV element is given to try UPJS function.
Orange DIV
Apple DIV
  • apple 1
  • apple 2
Code area to try out _.clss function.