I am having an error with firefox not wanting to accept an on key up event. I know that you have to program things differently for IE and FF but am having trouble doing so. Here is my working code in IE.
there are several text fields that run this same function and some text fields that will not fun the function.
Thanks in advance for any help.
[code=html]
<input name=”Lname” type=”text” class=”input” id=”nameinput” tabindex=”2″ value=”” onKeyDown=”KeyCheck(form1)” />
[CODE]
function KeyCheck(frm)
{
var KeyID = event.keyCode;
//alert(event.keyCode);
switch(KeyID)
{
case 13:
//document.Form1.cusLookup.currentValueIndices =1;
frm.cusLookup.focus();
frm.cusLookup.options[1].selected = “1”;
//document.Form1.L.value = “Ctrl”;
//
}
}
This is the function i am trying to use but cant figure out how to call it from the html
[CODE]
function KeyCheck(e)
{
var KeyID = (window.event) ? event.keyCode : e.keyCode;
switch(KeyID)
{
case 13:
//document.Form1.cusLookup.currentValueIndices =1;
frm.cusLookup.focus();
frm.cusLookup.options[1].selected = “1”;
//document.Form1.L.value = “Ctrl”;
//
}
}