Use JavaScript to switch the input box to enter the focus of the function, not carriage return line oh, in textarea, carriage return line is the default function, but to use carriage return in textarea to toggle the input box focus function, the carriage return line will be invalid, but the input object can be used, Generally in the form, the input element is more, here is an example:
<script type= "Text/javascript" >functionhandleenter (field, event) {varKeyCode = Event.keycode? Event.keyCode:event.which?Event.which:event.charCode;if(KeyCode = = 13) {vari; for(i = 0; i < field.form.elements.length; i++)if(Field = =Field.form.elements[i]) Break; I= (i + 1)%Field.form.elements.length;field.form.elements[i].focus ();return false;}Elsereturn true;}</script>
This will use the JS code above:
<form><input type= "text" onkeypress= "return Handleenter (This, event)" ><br><input type= "text" Onkeypress= "Return Handleenter (This, event)" ><br><textarea onkeypress= "return Handleenter (This, event)" > Return Toggle Focus </textarea></form>
JavaScript implements enter key to toggle input box focus