<?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: Accept only positive number using Jquery</title>
	<atom:link href="http://donamkhanh.com/2008/12/20/accept-only-positive-number-using-jquery.html/feed" rel="self" type="application/rss+xml" />
	<link>http://donamkhanh.com/2008/12/20/accept-only-positive-number-using-jquery.html</link>
	<description>Tích góp kinh nghiệm - Nhặt nhạnh kỹ năng...</description>
	<lastBuildDate>Thu, 08 Sep 2011 13:28:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: donamkhanh</title>
		<link>http://donamkhanh.com/2008/12/20/accept-only-positive-number-using-jquery.html/comment-page-1#comment-9502</link>
		<dc:creator>donamkhanh</dc:creator>
		<pubDate>Thu, 24 Mar 2011 10:14:11 +0000</pubDate>
		<guid isPermaLink="false">http://donamkhanh.com/?p=139#comment-9502</guid>
		<description>Hehe.. bản chất đều là check theo keycode. Cách của bạn là viết theo jQuery plugin rùi, pro hơn rất nhiều :p</description>
		<content:encoded><![CDATA[<p>Hehe.. bản chất đều là check theo keycode. Cách của bạn là viết theo jQuery plugin rùi, pro hơn rất nhiều :p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hoàng Kiên</title>
		<link>http://donamkhanh.com/2008/12/20/accept-only-positive-number-using-jquery.html/comment-page-1#comment-9501</link>
		<dc:creator>Hoàng Kiên</dc:creator>
		<pubDate>Thu, 24 Mar 2011 09:40:01 +0000</pubDate>
		<guid isPermaLink="false">http://donamkhanh.com/?p=139#comment-9501</guid>
		<description>Tớ thì chơi kiểu thế này
$.fn.ForceNumericOnly = function(){
	    return this.each(function(){
	        $(this).keydown(function(e){
	            var key = e.charCode &#124;&#124; e.keyCode &#124;&#124; 0;
				if(e.shiftKey){
					if(key &gt;= 48 &amp;&amp; key = 37 &amp;&amp; key = 48 &amp;&amp; key = 96 &amp;&amp; key &lt;= 105) &#124;&#124;
					key == 35 &#124;&#124;
					key == 36);
	        })
	    })
	};

Xài: $(&#039;.textbox_selector&#039;).ForceNumericOnly();</description>
		<content:encoded><![CDATA[<p>Tớ thì chơi kiểu thế này<br />
$.fn.ForceNumericOnly = function(){<br />
	    return this.each(function(){<br />
	        $(this).keydown(function(e){<br />
	            var key = e.charCode || e.keyCode || 0;<br />
				if(e.shiftKey){<br />
					if(key &gt;= 48 &amp;&amp; key = 37 &amp;&amp; key = 48 &amp;&amp; key = 96 &amp;&amp; key &lt;= 105) ||<br />
					key == 35 ||<br />
					key == 36);<br />
	        })<br />
	    })<br />
	};</p>
<p>Xài: $(&#039;.textbox_selector&#039;).ForceNumericOnly();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Đỗ Nam Khánh</title>
		<link>http://donamkhanh.com/2008/12/20/accept-only-positive-number-using-jquery.html/comment-page-1#comment-2496</link>
		<dc:creator>Đỗ Nam Khánh</dc:creator>
		<pubDate>Fri, 05 Jun 2009 02:23:44 +0000</pubDate>
		<guid isPermaLink="false">http://donamkhanh.com/?p=139#comment-2496</guid>
		<description>chắc do blog nó chặn ký tự đặc biệt hoặc bạn viết thiếu nên tôi không hiểu &quot;trong phần&quot; của bạn là gì :(</description>
		<content:encoded><![CDATA[<p>chắc do blog nó chặn ký tự đặc biệt hoặc bạn viết thiếu nên tôi không hiểu &#8220;trong phần&#8221; của bạn là gì <img src='http://donamkhanh.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: huuthanh3108</title>
		<link>http://donamkhanh.com/2008/12/20/accept-only-positive-number-using-jquery.html/comment-page-1#comment-2494</link>
		<dc:creator>huuthanh3108</dc:creator>
		<pubDate>Fri, 05 Jun 2009 00:46:43 +0000</pubDate>
		<guid isPermaLink="false">http://donamkhanh.com/?p=139#comment-2494</guid>
		<description>trong Jquery khi viết các hàm thông thường thì phải đặt trong phần  có cách nào để viết trong phần  không??? ví dụ các hàm như trên</description>
		<content:encoded><![CDATA[<p>trong Jquery khi viết các hàm thông thường thì phải đặt trong phần  có cách nào để viết trong phần  không??? ví dụ các hàm như trên</p>
]]></content:encoded>
	</item>
</channel>
</rss>

