470,849 Members | 697 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

capturing event of selection in textbox

Hi,
anibody knows how can i capture if an user has selected the content of
a textbox?
thanks
Wa

Oct 28 '05 #1
1 1466
Wasco wrote:
anibody knows how can i capture if an user has selected the content of
a textbox?


var isSelected = textbox.selectStart != textbox.selectEnd // Gecko
|| rangeNotEmpty;

See any FAQ on the subject.
PointedEars
Oct 28 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by SpinningCone | last post: by
8 posts views Thread by Galahad | last post: by
2 posts views Thread by George Durzi | last post: by
4 posts views Thread by Bruce HS | last post: by
2 posts views Thread by senfo | last post: by
3 posts views Thread by Paul | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.