jQuery HTML element selector clarification

mysliwy

New Member
I would like to know what is the difference between these two jQuery selectors:
  • \[code\]$("span")\[/code\]
  • \[code\]$("<span>")\[/code\]
I know that the former is used to select all elements of the provided HTML tag type in the page (which is specified in the jQuery Element Selector documentation). I am not sure what the latter selector does.Apologies if this question is a duplicate. If so, please kindly post the URI of the duplicated question.
 
Back
Top