the "test" your calling is the one you defined for the function
try
var test = 'Works!';
$('#action_confirm').click(function(){
alert(test);
});

Reply via email to