I had a simple script that when you pressed C you’d be redirected to a different page, same for other letters.
However, every time you would press the button this would happen, even if you were typing text into an input text field.
Can anyone write a lightweight script to allow me to make multiple hotkeys without them working in input fields or can show me where I can find documented explanations for this?
Okay, so I have the hotkey working, just can’t make it stop.
$("input.registerform").keypress(function(e){
e.stopPropagation();
});
Here is what I have to make it stop, the class of my input form is registerform bgcolor2 but it won’t work with input.registerform, nor with input.registerform bgcolor2.
I tried adding an ID to it with registerform as ID; didn’t work either :/
Is it being caused by my AJAX? or am I missing something here?
Try this