Is there a way to have keyup, keypress, blur, and change events call the same function in one line or do I have to do the
keyup
keypress
blur
change
This is how i do it.
$("input[name='title']").on({ "change keyup": function(e) { var slug = $(this).val().split(" ").join("-").toLowerCase(); $("input[name='slug']").val(slug); }, });