i have to add dynamic onclick attribute while data adding dynamically.
var jsondata = {
jsonarray : [
{data : '<button onclick="function("param")">submit</button>'}
]
}
$('#id').html(jsondata.jsonarray[i].data);
onclick attribute no binded in html code. if is there any other alternative please provide me. anyone help me on this.