This is my first time using stackoverflow. Hopefully everything makes sense.
I'm using tableTop.js and Handlebars to bring data from a google spreadsheet.
When data is loaded each one has a radio button associated which needs to trigger an event when selected (at the moment just an alert box).
My problem is that when I click it nothing happens. However if I hardcode in the exact same code (not pulled in from spreadsheet) then it the alert fires as normal.
Below is a link to demonstrate http://jsfiddle.net/danieltramacchi/zgSvY/
Code to fire event
$(document).ready(function () {
$(".sem-box").on("change", function () {
var location = $(this).find("h3").html();
alert(location);
});
});
The radio buttons that appear initially will fire the alert but if you click the image it will remove it and pull in data from the spreadsheet.
Any help would be greatly appreciated!