Click here to Skip to main content
15,301,624 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
For selecting the value in the textbox am using ajax autocomplete extender. After selecting the value from auto complete extender, cursor is focusing in the text box but back space is not working
can any one please help me to solve this issue

Thanks in advance
(Keerthi Kumar)
Updated 25-Aug-13 22:42pm
PrashantSonewane 26-Aug-13 3:36am
can you give some code which will help us understanding the issue. Also I would suggest you to try Jquery function AutoComplete if possible, it is fast and easy to manage.
Keerthi Kumar(Andar) 26-Aug-13 4:53am
Hi Prashanth,

Try like this
step 1 :Add a ajax auto complete extender in a aspx page.Use this auto complete extender with the textbox

step 2: Run using ie8 or ie 9

step 3 : select a value by using auto complete extender

step 4 :after loading again select some value from the auto complete extender do not click any where.
Now cursor will be present at the end of your text box but at that time backspace will not work.
after clicking backspace will work.

1 solution

It is better to focus the cursor at the end of the text by using javascript
//to display the cursor at the end of the text
function SetEnd(txt) {

    var FieldRange = txt.createTextRange();
    FieldRange.moveStart('character', txt.value.length);

Call this event OnChange event of the textBox

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900