Have you ever got the need to trigger append elements? append()
is mostly useful when you want to insert content or an element at the end of your target container. The common problems when you trigger append elements is that they are not rendered clickable.
Here is an example of an click()
button :
The problem why you can't trigger this dynamically is because click()
only applies for elements that already exists.
So you have to bind it to something that already exists such as the document
.