hello,

I just want some help,

when a text (which contains href link) is selected, I want the the href link in an hidden field. how can I do this...

example

<div id="div1">

some text here with <a href="http://yahoo.com"> href link </a>
</div>
<input type="hidden" value="" id="getText">


when I select href or link, I want the Href of it in the hidden field.

Thanks a lot