javascript - What's the difference between $.add and $.append JQuery -


i wondering , couldn't best documentation what's difference between $.add , $.append when have single element add or append container.

thanks in advance

given jquery object represents set of dom elements, .add() method constructs new jquery object union of elements , ones passed method. not insert element dom, i.e using .add() element added dom see in page have insert in page using insertion/append method.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -