I am trying to pass an asp.net button control's id to a javascript function. When I call the js function start_time, the text of the button needs to change. I have done a lot of research and Im still not able to get it to work. Any help or advice is much appreciated. Below is the code I have.
<asp:Button ID="btnStart" runat="server" Text="OK" />
$("#btnStart").click(function () {
start_time("btnStart");
});
function start_time(controlStart) {
var a = document.getElementById(controlStart);
a.innerHTML = "Start";
}