C
c.anandkumar
Hi
How do I figure out if a selection in a document is in a particular
control?
I have a TEXTAREA in which a user can type in some text, select some
text and 'apply' tags around it clicking a button. I am using
document.selection.createRange() to create a textRange object and then
modify its text property to suit the action. But the problem is I want
to limit this action to a few "INPUT type=text" and TEXTAREA controls.
How do I check if the selection is made in one of a set of controls?
Thanks for your help
Anand
How do I figure out if a selection in a document is in a particular
control?
I have a TEXTAREA in which a user can type in some text, select some
text and 'apply' tags around it clicking a button. I am using
document.selection.createRange() to create a textRange object and then
modify its text property to suit the action. But the problem is I want
to limit this action to a few "INPUT type=text" and TEXTAREA controls.
How do I check if the selection is made in one of a set of controls?
Thanks for your help
Anand