+ 1
can i use target in div tag?
if i click in hyperlink in one div tag the content of the hyperlink is displayed in another div tag..... is it possible or not....
2 Antworten
+ 3
You can do it with javascript:
Place on your div: <div onclick="myFunc()">My text</div>
And the JS:
function myFunc() {
var divWhere = document.getElementById('yourTargetDivId');
var content = '<a href="www.yourlink.com">your link</a>';
divWhere.innerHTML = content;
}
Please tell us if this runs as expected.
+ 3
With HTML/CSS? Not to my knowledge. JS/jQuery can easily accomplish such a task though.