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+"');
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
RickyPosted Jul 27, 2010, 10:41 AM
As stated, if it's server side, called btnSend use document.getElementById('<%=btnSend.ClientID %>').
Koteswararao MallisettiPosted Jul 27, 2010, 9:00 AM
var x= document.getElementById('<%=serid.ClicentId%>')
if it is ordinary text box it will work fine