jquery click not working on ajax loaded content
$(document).on("click", '.mylink', function(event) {
alert("new link clicked!");
});The problem is that .click only works for elements already on the page.
You have to use something like on if you are wiring up future elements
$("#LangTable").on("click",".deletelanguage", function(){
alert("success");
});
Also in JavaScript:
- Unexpected end of JSON input while parsing near '...fcd15e632426a1be","ta'
- get actual url in variable
- javascript not working on rails app
- what are the two ways to create an array in javascript examples?
- how to use hooks react
- manifest.webmanifest example
- angular load json file with httpclient
- check if field exists in object javascript
- Line 9:6: React Hook React.useEffect has a missing dependency: 'init'. Either include it or remove the dependency array
- find object in array javascript with property
- preventive vs reactive
- express case sensitive routing
- vue test utils emitted
- javascript web development debugging
- react toastify does not have design
- install node js lts ubuntu 18.04
- v-on:change vue
- javascript random sort array
- first duplicate javascript
- javascript virtual assistant scrip[t
- js multiply string
- Something bad happened. caprover
- javascript hide element by class
- materal ui react range slider