Add comma separator to a numbers with 2 decimal points
<p>I've managed to make the user input to 2 decimal points:
<a href="https://i.stack.imgur.com/8bsZC.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8bsZC.png" alt="enter image description here"></a>
Below is my code for two input fields:</p>

<pre><code>$('.ave-daily-accbalance').blur(function(){
    var num = parseFloat($(this).val()) || 0;
    var cleanNum = num.toFixed(2);
    $(this).val(cleanNum);

    });

    $('.facilitylimit').blur(function(){
    var num = parseFloat($(this).val()) || 0;
    var cleanNum = num.toFixed(2);
    $(this).val(cleanNum);

    });
</code></pre>

<p>But now I want to seperate the input with comma. So if the user inputs in 500000 - it automatically converts to 500,000.00</p>