jQuery issue with anchor tag using jqTransform

Posted by James Helms on Stack Overflow See other posts from Stack Overflow or by James Helms
Published on 2010-05-08T03:44:42Z Indexed on 2010/05/08 3:48 UTC
Read the original article Hit count: 314

Filed under:
|

I'm using jqtransform on my site. When the user is on a for them to be able to use hot keys to move through the selections. I added this function:

$wrapper.find('a').keydown(function (e) {

            var Esc = 27;

            var code = (e.keyCode ? e.keyCode : e.which);

            if(code== Esc || (code>=65 &&code<=90)){
                var letter = String.fromCharCode(code);

                if (code==Esc)
                    keyCodes = "";
                else{

                    if (keyCodes=='')
                        keyCodes += letter;
                    else
                        keyCodes += letter.toLowerCase();



                    var item = $wrapper.find('a[text^=\'' + keyCodes + '\']:first');

                    item.click();
                }
            }
        });

inside of $.fn.jqTransSelect.

This code works fine in all browsers but IE. the only thing i can find is that IE doesn't like the click event. Can anyone please help me with this?

If i debug into the code I can see that item is a select not an anchor like i would expect it to be, and that confuses me even more.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about internet-explorer