Change your code to :
onkeyup="comment(event,'your string')">
function comment(e,id) {
var comment = $(".blabla").val();
// alert(message); WORK
alert(e.keyCode);
}
solved e keyCode does not work for me [duplicate]
Change your code to :
onkeyup="comment(event,'your string')">
function comment(e,id) {
var comment = $(".blabla").val();
// alert(message); WORK
alert(e.keyCode);
}
solved e keyCode does not work for me [duplicate]