Hello,
i have a textbox which i use to calculate a prise of a product.For example the value of the textbox is 3, i read the value and show the right price for that product.
Problem is: i have an asp page and so i reload the page when a key is pressed and set the focus to the textbox with the value 3. The caret(cursor) is set to the first position of the textbox.I want to set the cursor to the end of the textbox so i can press the zero to order 30 pieces of that product and not 03 pieces. Is it possible to use a script for example in the body onload-event to set the cursor to the end of my textbox???
Can someone help me??? Thanks
Michel
i have a textbox which i use to calculate a prise of a product.For example the value of the textbox is 3, i read the value and show the right price for that product.
Problem is: i have an asp page and so i reload the page when a key is pressed and set the focus to the textbox with the value 3. The caret(cursor) is set to the first position of the textbox.I want to set the cursor to the end of the textbox so i can press the zero to order 30 pieces of that product and not 03 pieces. Is it possible to use a script for example in the body onload-event to set the cursor to the end of my textbox???
Can someone help me??? Thanks
Michel