+ 2

jquery

how many "a" characters will be output after the div is clicked three times? a $("div").click(function() { $("div").append("a"); $("div").off("click"); });

25th Jul 2018, 11:04 PM
Mohamed Ramadan El Geneidy‎
Mohamed Ramadan El Geneidy‎ - avatar
2 Answers
+ 1
2
25th Jul 2018, 11:04 PM
Mohamed Ramadan El Geneidy‎
Mohamed Ramadan El Geneidy‎ - avatar
+ 1
1. The event handler will be turned off after the first click.
25th Jul 2018, 11:17 PM
HoĂ ng Nguyễn Văn
HoĂ ng Nguyễn Văn - avatar