In the HTML input text, using the onKeyUp method I am able to catch the click event on enter button when input type="text" .
But the same event is not able to fire if the input type="number".
HTML
<input id="inputLocation" type="text" class="inputBarCode" style="text-transform: uppercase" placeholder: placeholder/>
JS
$('#inputLocation').keyup(function (e) {
if (e.which === 13) {
$('#inputLocation').blur();
//self.executeLocationLookup();
alert("Event ", e.which);
}
});
Can you please let me know how to get the click event(13) of the enter button if input type is numeric keyboard