<?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>Wed, 10 Mar 2010 10:59:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<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>
	<item>
		<title>By: d</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-3859</link>
		<dc:creator>d</dc:creator>
		<pubDate>Mon, 20 Apr 2009 19:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-3859</guid>
		<description>This script only works for numbers at the top of your keyboard. NumPad numbers wont work.</description>
		<content:encoded><![CDATA[<p>This script only works for numbers at the top of your keyboard. NumPad numbers wont work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mani</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-3770</link>
		<dc:creator>Mani</dc:creator>
		<pubDate>Tue, 07 Apr 2009 12:35:25 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-3770</guid>
		<description>Thanks ur support
not supporting server control </description>
		<content:encoded><![CDATA[<p>Thanks ur support<br />
not supporting server control</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nishit</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-3734</link>
		<dc:creator>nishit</dc:creator>
		<pubDate>Tue, 31 Mar 2009 05:27:25 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-3734</guid>
		<description>thank u rohan ...i m liking for this validation from long time ......thankyou again</description>
		<content:encoded><![CDATA[<p>thank u rohan &#8230;i m liking for this validation from long time &#8230;&#8230;thankyou again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adem</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-3731</link>
		<dc:creator>Adem</dc:creator>
		<pubDate>Sun, 29 Mar 2009 13:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-3731</guid>
		<description>Hello,
Very nice code, thank you.
Two questions will be.
How we will use multi-input?
Example:
Input1: errmsg1:
Input2: errmsg2:
Input3: errmsg3:
Input4: errmsg4:

AND
Requirement to start with zero?
Example: 0123, 056784, 045674, 09876, such as.

I am beginner, please try the code I would like

Thanks</description>
		<content:encoded><![CDATA[<p>Hello,<br />
Very nice code, thank you.<br />
Two questions will be.<br />
How we will use multi-input?<br />
Example:<br />
Input1: errmsg1:<br />
Input2: errmsg2:<br />
Input3: errmsg3:<br />
Input4: errmsg4:</p>
<p>AND<br />
Requirement to start with zero?<br />
Example: 0123, 056784, 045674, 09876, such as.</p>
<p>I am beginner, please try the code I would like</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moksha Solutions</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-3509</link>
		<dc:creator>Moksha Solutions</dc:creator>
		<pubDate>Thu, 29 Jan 2009 13:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-3509</guid>
		<description>Thanks was looking for something like this.</description>
		<content:encoded><![CDATA[<p>Thanks was looking for something like this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ecards</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-2753</link>
		<dc:creator>ecards</dc:creator>
		<pubDate>Sun, 12 Oct 2008 21:15:53 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-2753</guid>
		<description>It&#039;s really cool to have this script, thank you.

It does seem though that there should be an easier way to do this in jquery because it&#039;s so common.

For example in most desktop development environments you toggle an option and get this feature.

Yes, I know JQuery and related script has to remain super light, but still...

Thanks!</description>
		<content:encoded><![CDATA[<p>It&#8217;s really cool to have this script, thank you.</p>
<p>It does seem though that there should be an easier way to do this in jquery because it&#8217;s so common.</p>
<p>For example in most desktop development environments you toggle an option and get this feature.</p>
<p>Yes, I know JQuery and related script has to remain super light, but still&#8230;</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dmitri</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-1977</link>
		<dc:creator>Dmitri</dc:creator>
		<pubDate>Fri, 22 Aug 2008 10:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-1977</guid>
		<description>Thanks helped a lot.</description>
		<content:encoded><![CDATA[<p>Thanks helped a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html/comment-page-1#comment-1421</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Thu, 10 Jul 2008 04:59:43 +0000</pubDate>
		<guid isPermaLink="false">http://roshanbh.com.np/2008/04/textbox-accept-only-numbers-digits.html#comment-1421</guid>
		<description>Awesome script, but whenever I try to hit enter to submit the form it shows the error of &quot;Digits Only&quot; how can I fix this?</description>
		<content:encoded><![CDATA[<p>Awesome script, but whenever I try to hit enter to submit the form it shows the error of &#8220;Digits Only&#8221; how can I fix this?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
