I have a simple HTML like this:
Get alert with inserting a + sign: <input type="text" class="data" />
I want alert user whenever he/she press + key. But my jQuery code does not work:
$(document).ready(function(){
$(".data").bind('keydown',function(e){
if(e.which == 107){
alert('Plus sign entered');
});
});
});
What do I have to do ?
(This is my jsFiddle)