How to select text by default in a text box?
Hi all,
I have a screen which has a textbox...the cursor gets placed by default in the textbox!I enter a text in the textbox! And if I press submit..I get a resultset!
Now the issue is: If I want to enter a new text in the textbox...the new text gets appended to the earlier one.(which is not needed) I want a suggestion whereby I can make the earlier text a default selection and if I want to enter something new the earlier text should be highlighted so that when I enter something new, it won't be appended but instead it gets changed completely when I type!
Please help me out! This is urgent!!
|