Hello Everybody,
Friends I have problem in using local variable of java script in the java script function.
I am using code
function CharacterCount() {
var txtMessage = document.getElementById('<%= txtMessage.ClientID %>');
var numberOfChars = txtMessage.value.length; <%= this.txtchracters.Text = numberOfChars%>
}
But it is not accessing the local variable of java script function "numberOfChars" while assigning to this.txtchracters.Text
Please suggest me some technique to overcome this problem.
Thanks

Ranjit PowarRank #553 · 4.4K reputationPosted Dec 3, 2015, 11:25 PM EST
Nilesh Barne44 reputationPosted Dec 4, 2015, 12:21 AM EST