To: jQuery (English)
Subject: [jQuery] Re: Identify last keeypess
Thanks again. On reflection I think you are right James. I should
probably disable autocomplete for this field and doing so would
resolve my issue.
However, I've taken a quick look at the nocomplete plugin and that's
not really
From: jquery-en@googlegroups.com on behalf of rob303
Sent: Tue 20/01/2009 16:40
To: jQuery (English)
Subject: [jQuery] Re: Identify last keeypess
Thanks again. On reflection I think you are right James. I should
probably disable autocomplete for this field and doing so would
resolve my
Rob,
Is this some sort of autocomplete text box or is it a select input?
James
From: jquery-en@googlegroups.com on behalf of rob303
Sent: Tue 20/01/2009 13:44
To: jQuery (English)
Subject: [jQuery] Identify last keeypess
Hi,
I've been searching the web
Hi James,
Thanks for the reply. It's just a standard text input:
input class=login_input type=text name=user value= /
When the user clicks and starts to type the browser may, depending on
what's been entered before, give a list of options. Some users might
use the down or up arrow keys to
haven't tested it, but what happens if you try:
var lastKeyCode = 0;
// submit the login form if the user hits enter
$('.login_input').keypress(function(event) {
if(event.keyCode == 13 lastKeyCode != UP lastKeyCode != DOWN ) {
$('#login').submit();
}
lastKeyCode = event.keyCode;
});
] Re: Identify last keeypess
Hi James,
Thanks for the reply. It's just a standard text input:
input class=login_input type=text name=user value= /
When the user clicks and starts to type the browser may, depending on
what's been entered before, give a list of options. Some users might
use
Thanks again. On reflection I think you are right James. I should
probably disable autocomplete for this field and doing so would
resolve my issue.
However, I've taken a quick look at the nocomplete plugin and that's
not really what I want as it breaks some other functionality I have on
those
7 matches
Mail list logo