function Num(obj){
obj.value=obj.value.replace(/[^\d.]/g, "");
obj.value=obj.value.replace(/^\./g, "");
obj.value = obj.value.replace(/\.{2,}/g, ".");
obj.value = obj.value.replace(".","$#$" ).replace(/\./g,"" ).replace("$#$" ,"." );
}
< tr>
<td align ="right" style="font-weight:700">监测范围上限: </td >
<td align ="left">
<input onkeyup ="Num(this)" id ="jcfwsx" name= "xmjbxx.jcfwsx" type ="text" class="w_260" value= "${xmjbxx.jcfwsx } " dataType ="Require" msg="必填"/>
</td >
</tr >