use "tabindex" for the input fields. you can set the tab order too
For example:
<input name="name1" type="text" tabindex="1" />
<input name="name2" type="text" tabindex="3" />
<input name="name3" type="text" tabindex="2" />
so if you press tab button, the order will be like --> name1-->name3-->name2