2
Answers

That Code is not working in Mozilla .Can Any Body Help Me Out?

Sanyog Tomar

Sanyog Tomar

14y
3.1k
1
<script type="text/javascript" language="javascript">
    //Function To Check Decimal Value
    function ChkPrice(evt){    
    var pricesplit = evt.srcElement.value.split('.');    
    if (pricesplit.length > 2)
        return false;    
    if (pricesplit.length == 2 && pricesplit[1].length >= 2)
        return false;
    }
    </script>
Answers (2)