In jQuery is:

$('#editor')[0].Select($('#editor')[0].SelectionStart - 1, 1);
$('#editor')[0].SelectedText = '';

I try in FF - this no work:

Error: editor[0].Select is not a function


On 9 янв, 08:23, "jQuery Lover" <ilovejqu...@gmail.com> wrote:
> Here is how to simulate a backspace in javascript:
>
>   getElementById('yourTextBox').Select(TextBox1.SelectionStart - 1, 1)
>   getElementById('yourTextBox').SelectedText = "

Reply via email to