_.elName

Function Description
ElName has one or two input parameters.For one parameter, it returns elements with the given name from document.body. For two parameters, it returns elements with the given name from second parameter.
Function prototype
_.elName(name, context). If @context defined, it returns elements with @name from @context else document.body.
Function parameters
@name - dom name 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 _.elName function.