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