I have created textbox dynamically which goes on adding on button click which is working fine, but now I want to validate that each textbox which is dynamically created should take only numerical data as input.
How can I do that? I have not used jQuery to create textbox dynamically but used C# in asp.net.
You can use
CompareValidator
,As an alternative, you can use
RegularExpressionValidator
with"\d+"
pattern.