In below snippet code, If i give inputs "9999999999" and "9999999999." in console log both displays the same result "999999999" with out dot.
Am trying to capture dot symbol even after number. Here, only input type number is allowed cannot use text or any other type.
Text box is for number
Number: <input type='number' id=txtNumber'/>
And it's javascript function
$(document).ready(function() {
$('#txtNumber').keyup(function () {
var numbers = $(this).val(); console.log("numbers", numbers);
});
});
code at JSFiddle
Please help to find solution.