title: Add comma to numbers every three digits
body: <p>How can I format numbers using a comma separator every three digits using jQuery?</p>
  
  <p>For example:</p>
  
  <pre class="lang-none prettyprint-override"><code>╔═══════════╦═════════════╗
  ║   Input   ║   Output    ║
  ╠═══════════╬═════════════╣
  ║       298 ║         298 ║
  ║      2984 ║       2,984 ║
  ║ 297312984 ║ 297,312,984 ║
  ╚═══════════╩═════════════╝
  </code></pre>