The .click()
and similar functions like .hover()
allows to access the elements which are already present. But elements created using .append(), .after(), .before()
etc are newly inserted into the page.
These newly created elements cannot be accessed using the functions .click(), .hover()
as they target only the already present elements. Hence, to resolve this problem jQuery introduces a function .live()
which can be used to access the newly created elements.
Add your comment No Comments so far