Automatically move to next input text box if text lenght is one

I want to design pincode input text box of 4 digits if user enter one digit it automatically move to next
Please help me