number formatting in JS?
<pre><code>jQuery(function() {
jQuery( "#slider-range-min" ).slider({
    range: "min",
    value: 1,
    step: 1000,
    min: 100000,
    max: 3000000,
    slide: function( event, ui ) {
        jQuery( "#amount" ).val( "$" + ui.value );
    }
});
jQuery( "#amount" ).val( "$" + $( "#slider-range-min" ).slider( "value" ) );
});
</code></pre>

<p>The field "amount" on our page is filled with the value, but we want this value to be formatted similar to PHPs <code>number_format</code> (with commas, etc).</p>

<p>How would I go about doing this in javascript?</p>
