There are some values ββin the input field, separated by a comma. I want to warn the message when I press the COMMA ( , ) or ENTER key. I gave the code that I used for this, but did not work. Is there anything ineffective in this regard?
$(document).on("keyup", '.tagsinput', function (e) { if (e.which == 13 || e.which == 44) { alert('comma added'); } });
source share