I'm facing a strange problem when working with text fields in HTML.
I have two text fields "username_1" and "username_2", the username_1 will show when the app in portrait mode, and username_2 for landscape mode.
Okay, now i entered some value in "username_1" field consider as SSSSS, and i change the orientation, when i change the orientation am making "username_1" is blur, hide and making focus on "username_2", i set the value of "username_1" to "username_2". Now am in "username_2" field, and "username_2" value is SSSSS.
Now, if i start entering some values in "username_2" field consider as RRRRR , its appending from starting(RRRRRSSSSSS) instead of adding as in back(SSSSSRRRRRR).
$("#username_1").blur();
$("#username_1").hide();
$("#username_2").val($("#username_1").val());
$("#username_2").show();
$("#username_2").focus();
Please bare grammatical mistakes, please provide suggestions !!!
Thanks.