i think i found solution: var selectedObj = new Object();
function saveSelection(){ selectedObj[ 'start' ] = $( "#id" ).getSelection().start; selectedObj[ 'end' ] = $( "#id" ).getSelection().end; } function restoreSelection(){ $( "#id" ).setSelection( eval( '(' + '[ '+ selectedObj[ 'start' ] + ',' + selectedObj[ 'end' ] + ']' + ')' ) ); } On 29 авг, 22:46, "Amir.Mamedov" <[EMAIL PROTECTED]> wrote: > use 2 plugins > fieldSelection and jqModal > > how save selected state of textarea when i lost focus on field and > revert when i need to use them?