Saturday, August 25, 2012

asp.net – Passing a textbox value to javascript on key up function

Here i have passed the text control to the java script function but i just want to pass the value of the text box to the java script function instead on onkeyup.



function Changed(textControl) {
var _txtEmpName = document.getElementById(\'<%=txtEmpName.ClientID%>\');

var _EnteredString = _txtEmpName.value;

<asp:TextBox
ID=\"txtEmpName\" runat=\"server\" onkeyup=\"javascript: Changed( this );\"></asp:TextBox>






Rating: 1 out of 5 based on 3 ratings



The post asp.net – Passing a textbox value to javascript on key up function appeared first on Javascript ASK.






via Javascript ASK http://javascriptask.phpfogapp.com/asp-net-passing-a-textbox-value-to-javascript-on-key-up-function.html

No comments:

Post a Comment