eburlea 23 Junior Poster

Hi. I have an input type "number" set to display decimals. For example if I type "5" there should appear "5.0000". It works in Chrome and previous versions of Firefox. Now with Firefox 29 it does not work anymore. Does somebody know what could be the problem?

$('#mynumber').bind('focusout', function(){
    if(!isNaN(parseFloat($(this).val()))){
       $(this).val(parseFloat($(this).val()).toFixed(4));
    }
});
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.