[jQuery] Very long input text value and focus

2007-01-15 Thread Roberto Ortelli
Hello,
I don't know how to do that in JS or in JQuery, here is the problem:

Imagine 2 or 3 text fields of a form. A long value text is displayed
in each field. The text is too long and when I put a focus on a field
I did not see the cursor. How can I automatically display the end of
the text when I focus it?

Hoping is clear... thanks in advance -- Roberto

___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/


Re: [jQuery] Very long input text value and focus

2007-01-15 Thread Alex Brem
Hi Roberto,

I'm a bit in a hurry without much time for testing this but you can try
to get and then again set the selection.

Just use my plugin to accomplish this:
http://laboratorium.0xab.cd/jquery/fieldselection/0.2.3-test/

If this doesn't work, try it like this:
Get the selection range, store it, position the cursor to the end and
then re-set the stored range.

Alex


Roberto Ortelli wrote:
 Hello,
 I don't know how to do that in JS or in JQuery, here is the problem:
 
 Imagine 2 or 3 text fields of a form. A long value text is displayed
 in each field. The text is too long and when I put a focus on a field
 I did not see the cursor. How can I automatically display the end of
 the text when I focus it?
 
 Hoping is clear... thanks in advance -- Roberto


___
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/