[Solved] Why are my buttons not doing anything when clicked on?


Please check that the html elements on which you are adding the events are there on the page when dom is ready as you have applied code on dom ready. You might be setting the html through some other source like ajax or something else which might occur after dom ready.

Try adding the events on window load:

$(window).on('load',function(){

//Your code to be put here
});

solved Why are my buttons not doing anything when clicked on?