cancel.addEventListener('click',(xhr.abort));
it should be callback function
try this:
cancel.addEventListener('click', function(e){
xhr.abort()
})
On Monday, 30 October 2023 at 21:10:03 UTC+5:30 Gokul G.M wrote:
>
>
>
>
>
> Document
> https://stackpath.bootstrapcd
Document
https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css";
integrity=
"sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk"
crossorigin="anonymous">
https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"
2 matches
Mail list logo