Skip to content Skip to sidebar Skip to footer

Correct Closing Tag In Jquery Selector

Here's a snippet of code I saw on the web and I'm wondering if the

is a typo or what 'config' : { 'content' : $('#topGlobal') }, topGlobal.$content= topGlobal.co

Solution 1:

<p/> is a shorthand you can use in jQuery to create a new HTML element instance. In this case, a paragraph element.

Solution 2:

<p/> is equivalent to <p></p> in HTML. It is not a closing tag, which would be </p>.

Post a Comment for "Correct Closing Tag In Jquery Selector"