Jeditable - highlight all text after double click
Asked Answered
I

2

7

is there any options on jeditble so when i double click my text and the textbox pops up that it highlights all of the text

Isia answered 27/9, 2009 at 14:28 Comment(0)
G
18

Use the select parameter. True means select (highlight all). False is the opposite.

$(".editable").editable("http://www.example.com/save.php", { 
    type   : "textarea",
    select : true
});
Glottology answered 29/9, 2009 at 11:42 Comment(0)
R
2

for doubleclick:

$(".editable").editable("http://www.example.com/save.php", { 
 type   : "textarea",
 event  : "dblclick",
 select : true
});
Ronaronal answered 23/3, 2012 at 19:49 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.