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
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
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
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
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
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
[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 /
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;
}
});
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)) +
9 matches
Mail list logo