When you create an event with JQuery, it does not work on the elements you add to the d0cuments later. For example, when you add an object into the div with JQuery, the click event on that object may not work. The solution is to use different code.
Incorrect Code:
Solution:
If you use this code, you can create an event on any object added to the page later.
Source: https://www.turkhackteam.org/javasc...e-sonradan-eklenen-elemente-event-vermek.html
Translator: @Thekoftte
Incorrect Code:
Kod:
$("#added_object").click(function(){
// post-click action
});
Solution:
Kod:
$ ("# ust_selector"). on ('click', '# added_object', function ()
// post-click action
});(
If you use this code, you can create an event on any object added to the page later.
Source: https://www.turkhackteam.org/javasc...e-sonradan-eklenen-elemente-event-vermek.html
Translator: @Thekoftte
Moderatör tarafında düzenlendi: