[jQuery] Re: to change tab for enter

2007-04-18 Thread Fabyo
returned is empty and wrap back to 1. - Original Message From: Roberto Ortelli [EMAIL PROTECTED] To: jquery-en@googlegroups.com Sent: Monday, April 16, 2007 1:18:15 PM Subject: [jQuery] Re: to change tab for enter Just a first attempt, I don't like it, and you need to add a few

[jQuery] Re: to change tab for enter

2007-04-17 Thread Fabyo
Thanks very much thanks BethaSidik wrote: I've created the plugin for this purposes, name is enter2tab plugin. This plugin created for my project, that develop a web application that behave like normal window application, which can use enter to move on the next field. The plugin

[jQuery] Re: to change tab for enter

2007-04-17 Thread Fabyo
Included for list forms: http://docs.jquery.com/Plugins#Forms Fabyo wrote: Thanks very much thanks BethaSidik wrote: I've created the plugin for this purposes, name is enter2tab plugin. This plugin created for my project, that develop a web application that behave like normal

[jQuery] Re: to change tab for enter

2007-04-17 Thread Ariel Jakobovits
PROTECTED] To: jquery-en@googlegroups.com Sent: Monday, April 16, 2007 1:18:15 PM Subject: [jQuery] Re: to change tab for enter Just a first attempt, I don't like it, and you need to add a few lines of code ; ) $([EMAIL PROTECTED]).bind(keydown,function(e){ if (e.keyCode == 13) { tabIndex

[jQuery] Re: to change tab for enter

2007-04-16 Thread Karl Swedberg
Hi Fabyo, You might have to add return false; after the third line so that the Enter key doesn't submit the form. --Karl _ Karl Swedberg www.englishrules.com www.learningjquery.com On Apr 16, 2007, at 8:20 AM, Fabyo wrote: $([EMAIL

[jQuery] Re: to change tab for enter

2007-04-16 Thread Fabyo
not function exemple is not corret http://fabyoguimaraes.com/jquery/troca.html thanks Roberto Ortelli wrote: Fabyo, pay attention, the solution below only works if you have a form like that: form One input type=text name=one value= / Two input type=text name=two value= / Three input

[jQuery] Re: to change tab for enter

2007-04-16 Thread Fabyo
[b]onsubmit[/b] = ( is use Unobtrusive JavaScript Leonardo K wrote: Start tabindex with number 1. Without label: form action=# method=get onsubmit=return false; Campo 1: input type=text name=campo1 tabindex=1 /br / Campo 2: input type=text name=campo2 tabindex=2 /br /

[jQuery] Re: to change tab for enter

2007-04-16 Thread Roberto Ortelli
Just a first attempt, I don't like it, and you need to add a few lines of code ; ) $([EMAIL PROTECTED]).bind(keydown,function(e){ if (e.keyCode == 13) { tabIndex = parseFloat($(this).attr(tabindex)) + 1; $([EMAIL PROTECTED])[tabIndex].focus(); return false; } });

[jQuery] Re: to change tab for enter

2007-04-16 Thread Fabyo
Thanks perfect, perfect, perfect thanks Robert Roberto Ortelli wrote: Just a first attempt, I don't like it, and you need to add a few lines of code ; ) $([EMAIL PROTECTED]).bind(keydown,function(e){ if (e.keyCode == 13) { tabIndex = parseFloat($(this).attr(tabindex)) +