Hi all..
Can anyone suggest me to make numeric textbox using javascript that accepts numeric values and also the special characters like (. , - +)...
and how to resize the textbox as per the value given in database table..
For ex,
I can have the table named sample. It contains the fields like sno varchar(5),name varchar(100) and average numeric(5,2). Here how can i make the average textbox to accept 5 digits and 2 decimals.. ie(12345.00)
Thanks & Regards, Nazia
|
| Author: Nikhil Gaur 30 Oct 2009 | Member Level: Diamond | Rating:  Points: 2 |
there is no need to use javascript procedure you can use regular expression validator. and set a regular expression for you requirement.
Join this campus group http://www.dotnetspider.com/sites/637/-ecb-aspdotnet.aspx
Thanks & Regards NIks My Software and Web Development Experience
|
| Author: Shawpnendu bikash maloroy 04 Nov 2009 | Member Level: Silver | Rating:  Points: 2 |
You can read the below link. Where you can use signed,unsigned or float whatever you want to meet the client requirement:
http://shawpnendu.blogspot.com/2009/03/cross-browser-javascript-isnumeric.html
|
| Author: lakshya 05 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
create an event keyup in javascript and pass eas paramter in fucntion and check e.value range using ascii
Happy dotneting Spread Smiles :-) Visit Lakshya
|