Jquery: how to trigger click event on pressing enter key

try out this…. $(‘#txtSearchProdAssign’).keypress(function (e) { var key = e.which; if(key == 13) // the enter key code { $(‘input[name = butAssignProd]’).click(); return false; } }); $(function() { $(‘input[name=”butAssignProd”]’).click(function() { alert(‘Hello…!’); }); //press enter on text area.. $(‘#txtSearchProdAssign’).keypress(function(e) { var key = e.which; if (key == 13) // the enter key code { $(‘input[name = … Read more

Get a key from JTextArea

for listening changes into JTextComponent is there DocumentListener, if you have to need control over inputed Char, sings, whitespace chars or word(s) you have to implements DocumentFilter notice for Chars reservated by programing language(s) you have to use double escapes, \\( instead of ( or \\{ instead of { otherwise you get Exception in thread … Read more