我在jQuery的一个函数,它进入到一个PHP文件,该文件querys数据库返回一个表中的结果,每行有一个按钮, 如何访问按钮的页面了,jQuery打开。这里是一些代码jQuery的表的onclick事件
//function to get table form php file with button on each row
function show(str)
{
$.post('INCLUDES/gettable.php',{club: str},
function(output)
{
$('#box').html(output).show();
});
}
//when button from table is clicked do something
$("button").click(function()
{
alert("hello");
}
任何帮助表示赞赏
你错过了);在您的点击处理程序的末尾。 – jbabey 2012-02-09 14:53:00