J
jan.hancic
Hi,
I have searched everywhere to find this but without luck. Maybe I just
don't know how to search...
Anways I have a form. On this form there are multiple submit buttons.
This is a ASP.NET (2.0) form.
Now I have a textbox. And I would like that when somebody is typing
text into that textbox and then hits enter that a submit button of my
choice would fire (and couse a postback).
I have this code that works in Firefox but does not in IE (this is in
my onkeydown of the textbox):
if(event.keyCode == 13){document.getElementById('btnSearch').click();}
So how would I moddify this to work in IE or is there a better way?
I have searched everywhere to find this but without luck. Maybe I just
don't know how to search...
Anways I have a form. On this form there are multiple submit buttons.
This is a ASP.NET (2.0) form.
Now I have a textbox. And I would like that when somebody is typing
text into that textbox and then hits enter that a submit button of my
choice would fire (and couse a postback).
I have this code that works in Firefox but does not in IE (this is in
my onkeydown of the textbox):
if(event.keyCode == 13){document.getElementById('btnSearch').click();}
So how would I moddify this to work in IE or is there a better way?