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));
    }
});