Javascript to allow only one dot(.) in number input type field in html.