How to create a thousand separator upon typing in number text box?

Hi,

Can anyone please teach me how to create a thousand separator upon typing in number text box?

Example; 1,000,000

Thank you

This should get you started: Format text field with Standard Numeric Format