473,320 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

to solve the problem in text box only take integer value.

sir my problem is how we can insert only numeric value in text box in javascript.
Nov 18 '11 #1
1 1329
Dormilich
8,658 Expert Mod 8TB
use <input type="number"> where supported and when you use the value for some calculation, check beforehand if it is a number.
Nov 18 '11 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

7
by: Sashi | last post by:
Two questions: (1) I can pull the text of an XML element as a string just fine using code as such: strSomeString = myXmlDoc.SelectSingleNode("/Element1/Element2/Element3",...
1
by: Vaj | last post by:
Hi, when i'm Validating the Age TextBox like this if(txtAge.Text>125) reqage.ErrorMessage="age should be less than 125"; . I'm getting an errormessage "cannot use > to compare a string with...
5
by: Robert Wilson | last post by:
Hi, I'm a little new to C#, so bear with me. I have a text box on a form, and I want to be able to get an integer value of whats in it. In VC++ you just set the text box property to be numerals...
4
by: Dave | last post by:
Could someone tell me how I go about converting textbox->text to and integer value? Thanks Dave
0
by: d.steininger | last post by:
Hi there! Is there a way to bind a Textbox.Text to a ScrollBar.Value (not the Textbox-own Scrollbar) and vice versa? The Problem: I have to deal with two controls. The Textbox should accept...
8
by: Polaris431 | last post by:
I have a buffer that holds characters. Four characters in a row represent an unsigned 32 bit value. I want to convert these characters to a 32 bit value. For example: char buffer; buffer =...
17
by: khajeddin | last post by:
the problem is: Create a class HugeInteger which use 40-element array of digits to store integers as larg as 40 digits each.Provide methods input, output, add, subtract how to add to arrays ?
3
by: pingalkar | last post by:
Hi, JavaScript .. var i=0; basechem="<UL>"; while (i >= 0) { basechem = xml.getElementsByTagName("basechemical"); basechem = basechem.firstChild.data; basehtml += "<LI><a...
2
by: shanef1981 | last post by:
Hey Guys, Hoping someone can help me here - I am at my wits end trying to get this to work. I have written a stored procedure in SQL Server to move records from one table to another once...
1
by: mfaisalwarraich | last post by:
Hi everyboyd, im trying to make a function which will keep the cursor to its position if non integer value is entered into a textbox. im using the following code: Public Class Form1 Private...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.