Hello!
I'm trying to send async request to route but faced one problem. On click event does not worked:
I see the first alert. But don't see alert after pressing the button.
Button:
Thanks
Hello,
Please make sure your object already exists, try to add right after your alert():
console.log("button exists: ", AJS.$("#test").length);
0 means that the object is not present in DOM yet...
Tom
Error on the first line, need to use AJS.$ instead $ Thanks
Good catch, thanks for the update!
It looks like you're new here. Sign in or register to get started.