I want to first remove all dots (156660)
The delete the first and the last number (5666)
Code:
<html>
<title>Remove dot from textbox on input</>
<head>
<script type="text/javascript">
function preventDot(id) {
str = document.getElementById(id).value;
document.getElementById(id).value = (str.replace(".",""));