jQuery won’t load because of selector exception

Wanted to include jQuery, tried both local and via CDN (3 different links; google, Microsoft, jQuery) but neither of the 4 seems to be working for me. The Process pauses with this exception:

DOMException: Failed to execute 'querySelectorAll' on 'Element': '*,:x' is not a valid selector.

Any solution to that?

JS script:

$(".readonly").on('keydown paste focus mousedown', function(e){
        if(e.keyCode != 9) // ignore tab

Read more here: https://stackoverflow.com/questions/67921800/jquery-wont-load-because-of-selector-exception

Content Attribution

This content was originally published by Hichkas at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: