+ 4

How to add a div by added div by jquery

https://code.sololearn.com/W680E6D69bkj/?ref=app

17th Feb 2018, 11:49 AM
Hassu
Hassu - avatar
7 Answers
+ 2
you need to append onchange or onclick event ATRIBUTE inside created div and then call your function on change event in js
17th Feb 2018, 12:30 PM
ANDRIJA MICIC
ANDRIJA MICIC - avatar
17th Feb 2018, 12:13 PM
Vukan
Vukan - avatar
17th Feb 2018, 12:18 PM
ANDRIJA MICIC
ANDRIJA MICIC - avatar
+ 1
I want to add function to added div by after method
17th Feb 2018, 12:24 PM
Hassu
Hassu - avatar
+ 1
append:- is id of a button and after click on this button a new button is created with another id append2 and after that I want to add a text after append2 id button on clickinking append2 id button
17th Feb 2018, 12:29 PM
Hassu
Hassu - avatar
+ 1
Append this as atribute off div onclick="yourfunction()"
17th Feb 2018, 12:47 PM
ANDRIJA MICIC
ANDRIJA MICIC - avatar
+ 1
it's working @ANDRIJA MICIC. thank u
17th Feb 2018, 12:47 PM
Hassu
Hassu - avatar