$("btn-yes").bind("click", function(){ alert( $(this).text() );});$("btn-no").bind("click", function(){ alert( $(this).text() );});