Gettin Button controle through javascript at runtime
I want to call the button cllick event at the runtime through javascript
i have written this code and it is always returning null value
document.getElementById('"+btnSend.ClientID+"');
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Koteswararao MallisettiRank #2,740 · 511 reputationPosted Jul 27, 2010, 5:00 AM EDT
var x= document.getElementById('<%=serid.ClicentId%>')
if it is ordinary text box it will work fine
Ricky5 reputationPosted Jul 27, 2010, 6:41 AM EDT
As stated, if it's server side, called btnSend use document.getElementById('<%=btnSend.ClientID %>').