(function($){ /* p = $.extend({nchars: az}, p); �� $.fn ���� extend ���𹮿����� ���ܵǾ�� �� ij���͸� �����ؾ� �Ѵ�. (az, nm) ���� $.fn.alphanumeric������ �����ϴ� ���ڴ� ���� (�ѱ�����) Ư������ (ichars) �� ���ܷ� ��õǾ� �ִ�. ���⿡�� ��ħǥ�� �Է��� �����ϵ��� �Ǿ� �����Ƿ� ���ڸ� �Ǵ� ������ ����� ��� ��ħǥ�� extend �� ����ؾ� �Ѵ� (ichars) */ // ���� fn $.fn.alphanumeric = function(p) { p = $.extend({ ichars: "!@#$%^&*()+=[]\\\';/{}|\":<>?~`-_ ", nchars: "", allow: "" }, p); return this.each (function() { if (p.nocaps) p.nchars += "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; if (p.allcaps) p.nchars += "abcdefghijklmnopqrstuvwxyz"; s = p.allow.split(''); for ( var i=0;i?~`_,. "; az += az.toUpperCase(); p = $.extend({ ichars: ".", nchars: az }, p); return this.each (function() { $(this).css("ime-mode", "disabled"); $(this).alphanumeric(p); } ); }; // ���� �Է� (���ڸ� �����ϵ��� ���) $.fn.alpha = function(p) { var nm = "1234567890"; p = $.extend({ ichars: ".", nchars: nm }, p); return this.each (function() { $(this).css("ime-mode", "disabled"); $(this).alphanumeric(p); }); }; // ij�� �Է� (����, ��ħǥ�� ����) $.fn.alphaCash = function(p) { var az = "abcdefghijklmnopqrstuvwxyz"; az += az.toUpperCase(); p = $.extend({ nchars: az }, p); return this.each (function() { $(this).css("ime-mode", "disabled"); $(this).alphanumeric(p); }); }; // ���鸸 �� ����(��ħǥ, ��ǥ�� ����) $.fn.blankNon = function(p) { var az = " "; az += az.toUpperCase(); p = $.extend({ nchars: az }, p); return this.each (function() { $(this).alphanumeric(p); }); }; // ij�� �Է� (����, ��ħǥ�� ����) $.fn.numericcomma = function(p) { var az = "abcdefghijklmnopqrstuvwxyz!@#$%^&*()+=[]\\\';/{}|\":<>?~`-_. "; az += az.toUpperCase(); p = $.extend({ ichars: ".", nchars: az }, p); return this.each (function() { $(this).css("ime-mode", "disabled"); $(this).alphanumeric(p); }); }; })(jQuery);