I am using $.each to create the button with each array object. I also tried to give each button a specific id, so I can do click event for further coding, but n
$.each
That was because your DOM will be created on the fly. So you have to use delegate with jQuery:
Bind click event on document with selected id:
$(document).on('click', '#questlist_item_button_go'+obj.questid, function(){ // your action here });