I\'m using the chosen.js plugin http://harvesthq.github.com/chosen/ with jQuery to allow the user to select multiple options from a select. However, I now want to be able to
Here's a simple way that I did it:
$(".search-field").find("input").live( "keydown", function (evt) { var stroke; stroke = (_ref = evt.which) != null ? _ref : evt.keyCode; if (stroke == 9) { // 9 = tab key $('#tags').append('' + $(this).val() + ''); $('#tags').trigger('chosen:updated'); } });