We are using a custom control text box, named as tbx.
We have added an attribute as tbx.Attributes.Add (“onkeyup=”,” this.value = this.value.slice(0, 2000)”).
Now I want one more attribute to be added, stating that I should not allow the “$” symbol to be entered. So I want to capture the “$” in key event.
Can anyone guide me about the approach.
Thanks
Set your Attribute properly:
And create a javascript function like this:
working example: http://jsfiddle.net/taRJv/2/