Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery hotkeys plugin
    primarykey
    data
    text
    <p>Using this hotkeys plugin, <a href="https://github.com/jeresig/jquery.hotkeys" rel="nofollow">https://github.com/jeresig/jquery.hotkeys</a>, I'm having some problems with the following code:</p> <pre><code>jQuery( document ).ready( function( $ ) { function insert_tag(tag){ $('#water_chemistry').val($('#water_chemistry').val()+' ['+tag+'] '); } $(document).bind('keydown', 'alt+ctrl+1', insert_tag("temp_min")); $(document).bind('keydown', 'alt+ctrl+2', insert_tag("temp_max")); $(document).bind('keydown', 'alt+ctrl+3', insert_tag("pH_min")); $(document).bind('keydown', 'alt+ctrl+4', insert_tag("pH_max")); $(document).bind('keydown', 'alt+ctrl+5', insert_tag("hardness_min")); $(document).bind('keydown', 'alt+ctrl+6', insert_tag("hardness_max")); $(document).bind('keydown', 'alt+ctrl+7', insert_tag("conductivity_min")); $(document).bind('keydown', 'alt+ctrl+8', insert_tag("conductivity_max")); $('a#temp_min').click(insert_tag("temp_min")); $('a#temp_max').click(insert_tag("temp_max")); $('a#pH_min').click(insert_tag("pH_min")); $('a#pH_max').click(insert_tag("pH_max")); $('a#hardness_min').click(insert_tag("hardness_min")); $('a#hardness_max').click(insert_tag("hardness_max")); $('a#conductivity_min').click(insert_tag("conductivity_min")); $('a#conductivity_max').click(insert_tag("conductivity_max")); }); </code></pre> <p>If I refresh the page, all of the tags are inserted into the textarea.</p> <p>I'm presuming I've messed my syntax up, but I'm not sure how!</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload