Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
am write the like

tableContents += "
<button style='width:60;height:18;' id='"+retrivemultiple[i].id+"_btnupdate' onclick='updateAccount("+retrivemultiple[i].id+")'>Update</button>
";

and write the function like

C#
function updateAccount(id)
{
    debugger;

     var Name = document.getElementById(id+"_lsu_name");

}

but in this click the button onclick not working pls hep me...
Posted
Comments
DamithSL 21-Jan-15 1:42am    
what is the generated html?
have you check the errors in your browser javascript console?
jaket-cp 21-Jan-15 5:38am    
how do you know if the button onclick is not working?

1 solution

Try this:


XML
<button style='width:60;height:18;' id='"+retrivemultiple[i].id+"_btnupdate' onclick='updateAccount(this)'>Update</button>
";
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900