Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery events on keyboard issue

This is a simple version of what I am looking for: http://jsfiddle.net/mitchbregs/DLg92/5/

Now for a more complex version as here: http://jsfiddle.net/mitchbregs/E7a9S/1/

The simple version works just fine. It has no issues and the event is completely corrent.

Now when you look at the more complex website, my event doesn't happen and I don't see why there is an issue.

I added the correct script to both websites and only the simple one is working.

I am trying to make it so that when a user click 'n' the text_input_box opens just like it would if you click the 'Add Note' button in the navigation menu.

I'm pretty new to jQuery and JavaScript so this is just a learning project I'm working on.

Thank you all for your time and help!

like image 269
sgerbhctim Avatar asked Mar 25 '26 20:03

sgerbhctim


1 Answers

Alright i found the problam actually its not in your code, and this is the fiddle: http://jsfiddle.net/E7a9S/5/

The problam was that you included mootools in jsfiddle that made jquery not work properly.

the simple version worked just fine because if you notice there you actually did included the jquery and not the mootools.

btw the advanced one is just beautiful and is really cool.

Good Luck!

like image 135
Dan Barzilay Avatar answered Mar 28 '26 08:03

Dan Barzilay



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!