Sanyog Tomar

Sanyog Tomar

  • NA
  • 23
  • 0

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

Aug 2 2010 1:34 AM
<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)