What is dynamicStudy()?
The click fires just fine https://jsfiddle.net/k84hf6bp/
Code
$(document).ready(function() {
let countStudy = 1;
$('#addSocial').click(function () {
countStudy++;
dynamicStudy(countStudy);
});
});
The above code doesn't work. When I click on #clicker, it doesn't alert and and it doesn't hide. I checked the console and I get no errors. I also checked to see if JQuery was loading and indeed it is. So not sure what the issue is. I also did a document ready function with an alert and that worked so not sure what I am doing wrong. Please help. Thanks!
My best guess would be that you have multiple elements with that id. Only the first one will work.
Example: https://jsfiddle.net/oex7Lfn3/
Please or to participate in this conversation.