Chancellor2000
Technical User
I have the following code which works for IE. But I cannot get anything to work for Firefox.
if (document.selection) {
var inputRange = input.createTextRange();
var theend = inputRange.text.length;
inputRange.moveStart("character", theend);
inputRange.collapse();
inputRange.moveEnd("character", 1);
inputRange.select();
}
For what it is worth, input is a file upload. I just want to show the right side of the text instead of the left side of the text when it doesn't all fit in the associated textbox. The "dir" attribute simply reverses the textbox and the associated browse button.
if (document.selection) {
var inputRange = input.createTextRange();
var theend = inputRange.text.length;
inputRange.moveStart("character", theend);
inputRange.collapse();
inputRange.moveEnd("character", 1);
inputRange.select();
}
For what it is worth, input is a file upload. I just want to show the right side of the text instead of the left side of the text when it doesn't all fit in the associated textbox. The "dir" attribute simply reverses the textbox and the associated browse button.