Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- $.fn.tabChar = function() {
- $(this).each(function() {
- var input = $(this);
- var response = function(event){
- if ((event.keyCode||event.which)==9) {
- input.val(input.val()+'\t');
- return false;
- }
- };
- input.bind('keydown', response).live('keydown', response);
- });
- }
- })(jQuery);
- //kullanımı
- $('input, textarea').tabChar();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement