Jquery Button Not Firing
Jquery Button Not Firing
Okay, I have been playing around with this all day and it just doesn't want to work.
<
button
id
=
"target"
>
click me
</
button
>
<
script
>
alert(
"firing"
);
$(document).ready(
function
() {
$(
"#target"
).click(
function
() {
alert(
"Handler for .click() called."
);
});
});
<
/
script
>
The first alert is firing but the alert within the event listener click isn't!
Topic Participants
joshuaheathcote1987
jakecigar