How do I convince this button to do something when it is clicked?

So, if anyone has the same problem, I think this was the issue:

I had the button inside of a div that was hidden until the user selected an option from the drop box. I think the problem was that the ajax script wasn’t connecting with the button, because the button didn’t exist when the page and script originally loaded. If that makes sense. I changed it so that the button is in a different part of the page and hides after the page loads and it works perfectly now.