For my website, i need to provide arabic support. Part of it is to provide input textboxes where when user types in, the new characters have to be appended to the left and t
function rtl(element) { if(element.setSelectionRange){ element.setSelectionRange(0,0); } }
This code will do.