if you dragg any hyperlink <a href="go.php"> to an imput (for example a search input), the href attribute is append to the input’s content, <input type="text" value="http://domain.com/go.php" />
Is there a way to append the title attribute instead, or the innerHtml?
I ask this because I want to avoid the use of jQuery UI’s draggable extension.
Any ideas will be helpful.
I think you mean that the value of the input is set to the href of the link. Anyway, it isn’t in IE 8.
There are other drag and drop libraries with much less overhead than jQuery + jQueryUI, I suspect that many of them will allow you to do what you want when one element is dragged to another. e.g. myLibrary has an attachdrag function where you can specify what happens when an element is dropped.
So just check the dropped element’s tagname and if it’s an A, look for the href to check if it’s a link then do what you want.