Home > Tips and Tricks > jQuery

jQuery

Accessing newly created elements using .live() function in jQuery

509 views | jQuery | No Response
Accessing newly created elements using .live() function in jQuery

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 [...]