got problem in giving click event of input button ..
hii ,
i am getting problem in giving click event of input button ..
my code is
for(var i=0;i<data.length;i++){
var acceptid="#Accept_"+data[i].cardid;
var divcard='<div id="" style="border-bottom:1px solid white;">'+data[i].user_from+' '+data[i].card_type+
' <input type="button" value="Accept" id='+"Accept_"+data[i].cardid+'> <input type="button" value="Delete"></div>';
var x = ("input#id").val();
$(acceptid).click(function() {
alert('Handler for .click() called.');
});
$('#cards_pending').append(divcard);
}
in above code i have the accept button where i want to give the click event and i have given the click function also but its not working please help.
regards
rahul