RamyBouchra
asked on
JavaScript Highlight or Select data a textbox
Dear Experts.
I am using ASP.NET2.0, C#.
I want to make Highlight or Select data in side a textbox through JavaScript.
I am using ASP.NET2.0, C#.
I want to make Highlight or Select data in side a textbox through JavaScript.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you for your reply
but i want it to be like if i pres TAB so it will be selected so i can write over it with out deleting the exsiting value.
thank you.
but i want it to be like if i pres TAB so it will be selected so i can write over it with out deleting the exsiting value.
thank you.
You must have missed this:
textbox.setSelectionRange( 0, textbox.value.length);
Call it with the onFocus event.
Bob
textbox.setSelectionRange(
Call it with the onFocus event.
Bob
Bob