I have created a textbox with id of 'txtDFI' in asp.net.And limited it to accept only float values by using below function
document.getElementById('txtDFI').onkeydown = function() { return(integerAndFloatOnly()) };
My problem is that it should accept only two numbers after decimal point..If user entered 3rd number it shuould not accept.. Can anybody help me how can I meet this requirement in javascript...
ManyThanks..