<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Textbox to accept only numbers (digits) using jquery</title>
	<atom:link href="http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/feed" rel="self" type="application/rss+xml" />
	<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html</link>
	<description>Useful Tutorials, Scripts , Tips, and Resources for all PHP and Ajax beginners and experts .</description>
	<lastBuildDate>Tue, 07 Feb 2012 08:10:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Garment</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-6765</link>
		<dc:creator>Garment</dc:creator>
		<pubDate>Thu, 02 Feb 2012 03:02:00 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-6765</guid>
		<description>Thanks for given me a good guide about it, it has helped me a lot.</description>
		<content:encoded><![CDATA[<p>Thanks for given me a good guide about it, it has helped me a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MHD</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-6562</link>
		<dc:creator>MHD</dc:creator>
		<pubDate>Sun, 26 Jun 2011 08:57:19 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-6562</guid>
		<description>Thank you very match .. it&#039;s help me.</description>
		<content:encoded><![CDATA[<p>Thank you very match .. it&#8217;s help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jumpjack</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-6419</link>
		<dc:creator>jumpjack</dc:creator>
		<pubDate>Sun, 13 Feb 2011 11:49:43 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-6419</guid>
		<description>How can I prevent user IN ADVANCE from inserting characters other than numbers? For mobile devices users it would be much more comfortable if the only input possibile is numeric, as they must press each button 3 or 4 times to get a number rather than a letter!
I tried adding    TYPE=&quot;TEL&quot;    or    format=&quot;*N&quot;    in the input field, but it does not work.</description>
		<content:encoded><![CDATA[<p>How can I prevent user IN ADVANCE from inserting characters other than numbers? For mobile devices users it would be much more comfortable if the only input possibile is numeric, as they must press each button 3 or 4 times to get a number rather than a letter!<br />
I tried adding    TYPE=&#8221;TEL&#8221;    or    format=&#8221;*N&#8221;    in the input field, but it does not work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dinesh</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-5567</link>
		<dc:creator>dinesh</dc:creator>
		<pubDate>Thu, 29 Jul 2010 04:54:18 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-5567</guid>
		<description>Hi Roshan your code really superb. Is any code to accept the numbers with dot ( I mean float number) If there means please help me.
Thankyou</description>
		<content:encoded><![CDATA[<p>Hi Roshan your code really superb. Is any code to accept the numbers with dot ( I mean float number) If there means please help me.<br />
Thankyou</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Lam</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-5483</link>
		<dc:creator>Alex Lam</dc:creator>
		<pubDate>Mon, 07 Jun 2010 04:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-5483</guid>
		<description>hello everybody, i just do like Waqas, but it do not work. I don&#039;t know the error it is. Can you please explain &quot;keypress(function (e)&quot;. What is &quot;e&quot;? Thanks so much.</description>
		<content:encoded><![CDATA[<p>hello everybody, i just do like Waqas, but it do not work. I don&#8217;t know the error it is. Can you please explain &#8220;keypress(function (e)&#8221;. What is &#8220;e&#8221;? Thanks so much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dm777</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-5408</link>
		<dc:creator>dm777</dc:creator>
		<pubDate>Sun, 02 May 2010 16:24:02 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-5408</guid>
		<description>Very nice script. 

How to I allow it to accept period, decimal characters both . or ,

Thanks</description>
		<content:encoded><![CDATA[<p>Very nice script. </p>
<p>How to I allow it to accept period, decimal characters both . or ,</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jQuery price validator plugin &#183; Ariy Technology</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-5240</link>
		<dc:creator>jQuery price validator plugin &#183; Ariy Technology</dc:creator>
		<pubDate>Fri, 12 Mar 2010 18:12:21 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-5240</guid>
		<description>[...] one of the blogs (http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html) we have found a good solution, but it does not fit us all. After making modifications to the [...]</description>
		<content:encoded><![CDATA[<p>[...] one of the blogs (<a href="http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html" rel="nofollow">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html</a>) we have found a good solution, but it does not fit us all. After making modifications to the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mj</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-5205</link>
		<dc:creator>mj</dc:creator>
		<pubDate>Sat, 27 Feb 2010 06:16:49 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-5205</guid>
		<description>Hello,

How can i change the code to accept alphabets and space only?


thanks.</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>How can i change the code to accept alphabets and space only?</p>
<p>thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ali</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-5045</link>
		<dc:creator>ali</dc:creator>
		<pubDate>Fri, 15 Jan 2010 06:04:54 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-5045</guid>
		<description>This is great code.. great work man!!!!... but there are still some problems ..
1. You can paste text by right click on the text box and paste .
2. Please generalize code by passing ID of the control as parameter.  
Regards,
Ali Raza</description>
		<content:encoded><![CDATA[<p>This is great code.. great work man!!!!&#8230; but there are still some problems ..<br />
1. You can paste text by right click on the text box and paste .<br />
2. Please generalize code by passing ID of the control as parameter.<br />
Regards,<br />
Ali Raza</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pligg.com</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-4961</link>
		<dc:creator>pligg.com</dc:creator>
		<pubDate>Fri, 18 Dec 2009 16:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-4961</guid>
		<description>&lt;strong&gt;Textbox to accept only numbers (digits) using jquery...&lt;/strong&gt;

Few days back, my friend Parleen asked me how can we make a textbox which just accepts only numbers specially digits only. And, for his I come up with this solution of textbox which only accepts digits, and if you try to enter any alpha bates in it the...</description>
		<content:encoded><![CDATA[<p><strong>Textbox to accept only numbers (digits) using jquery&#8230;</strong></p>
<p>Few days back, my friend Parleen asked me how can we make a textbox which just accepts only numbers specially digits only. And, for his I come up with this solution of textbox which only accepts digits, and if you try to enter any alpha bates in it the&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zeally</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-4856</link>
		<dc:creator>zeally</dc:creator>
		<pubDate>Fri, 27 Nov 2009 10:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-4856</guid>
		<description>Thank you, it&#039;s work.</description>
		<content:encoded><![CDATA[<p>Thank you, it&#8217;s work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-4665</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Wed, 07 Oct 2009 20:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-4665</guid>
		<description>Has this been tested in all the major browsers?  How does this compare the the numeric jquery plugin?</description>
		<content:encoded><![CDATA[<p>Has this been tested in all the major browsers?  How does this compare the the numeric jquery plugin?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shachindra Pandey</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-4160</link>
		<dc:creator>Shachindra Pandey</dc:creator>
		<pubDate>Thu, 02 Jul 2009 08:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-4160</guid>
		<description>Hey it is really fantastic code.I am using this concept in my work.
Really an amazing experience.wonderfull thanks buddy thank you very much.

sachindra Pandey</description>
		<content:encoded><![CDATA[<p>Hey it is really fantastic code.I am using this concept in my work.<br />
Really an amazing experience.wonderfull thanks buddy thank you very much.</p>
<p>sachindra Pandey</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waqas</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-4039</link>
		<dc:creator>Waqas</dc:creator>
		<pubDate>Sun, 31 May 2009 10:58:19 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-4039</guid>
		<description>Dear Roshan
I have just copied n pasted to ma test page. but it is not working for me. Can you please help me. I m new to web development.
it looked very nice. but not working for me. dont know...

i included the js file.
i my aspx page.

copied ur html code i.e
  
n wrote the javascript like


$(&quot;#quantity&quot;).keypress(function (e)
{
  //if the letter is not digit then display error and don&#039;t type anything
  if( e.which!=8 &amp;&amp; e.which!=0 &amp;&amp; (e.which57))
  {
    //display error message
    $(&quot;#errmsg&quot;).html(&quot;Digits Only&quot;).show().fadeOut(&quot;slow&quot;);
    return false;
  }
});


i just copied your code.
But it is not working..what should i do???
please help if you can</description>
		<content:encoded><![CDATA[<p>Dear Roshan<br />
I have just copied n pasted to ma test page. but it is not working for me. Can you please help me. I m new to web development.<br />
it looked very nice. but not working for me. dont know&#8230;</p>
<p>i included the js file.<br />
i my aspx page.</p>
<p>copied ur html code i.e</p>
<p>n wrote the javascript like</p>
<p>$(&#8220;#quantity&#8221;).keypress(function (e)<br />
{<br />
  //if the letter is not digit then display error and don&#8217;t type anything<br />
  if( e.which!=8 &amp;&amp; e.which!=0 &amp;&amp; (e.which57))<br />
  {<br />
    //display error message<br />
    $(&#8220;#errmsg&#8221;).html(&#8220;Digits Only&#8221;).show().fadeOut(&#8220;slow&#8221;);<br />
    return false;<br />
  }<br />
});</p>
<p>i just copied your code.<br />
But it is not working..what should i do???<br />
please help if you can</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie Elliott</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-3957</link>
		<dc:creator>Charlie Elliott</dc:creator>
		<pubDate>Sat, 09 May 2009 17:03:20 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-3957</guid>
		<description>Any help on checking multiple textboxes with only one function?</description>
		<content:encoded><![CDATA[<p>Any help on checking multiple textboxes with only one function?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/19 queries in 1.236 seconds using disk: basic
Object Caching 401/401 objects using disk: basic

Served from: roshanbh.com.np @ 2012-02-09 06:16:12 -->
