I am trying to get the value of the textbox in a javascript, but its not working. Given below is the code of my test page
<%@ Page Title=\"\" Language=\"V
Use
document.getElementById('<%= txt_model_code.ClientID %>')
instead of
document.getElementById('txt_model_code')`
Also you can use onClientClick instead of onClick.
onClientClick
onClick