Hello,
How to use validation for numeric value .
I have a div and a table generate dynamically in this div using InnerHtml.
how can prevent when any one type alphabet in dynamic textbox onmouseleave.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Jan 21, 2014, 8:26 AM
hi,
you can also use regex to validate the numeric data
function isNumber(v) {
return v.trim().length > 0 && v.trim().match(/^[0-9]*(\.[0-9]+)?$/);
}
hope this will help you.
Jaganathan BantheswaranPosted Jan 21, 2014, 7:36 AM
TextBox1 txt = new TextBox();
txt.Text = "Dynamic";
txt.attributes.add("onkeypress","javscript function");