Yes Men Definitely I Must Say THANKS A LOT FOR GET ME out of this,
Now I have little update in code, In wich i edit a js function of get_val(), and href and another Textarea.
The Working mechanism is that, I got the Id of div on my text area, Now if i click href that holds another JS function, It just send the values inside first text area to second text area, or if i just edit some more values inside text1 and again clicks href then it also send them to second text area, by removing the old value with the new value
Can it be possible
Let me share a code that i update,
Change it please if i am missing something....
<html>
<head>
<script type="text/javascript">
function get_id()
{
var divEls = document.getElementsByTagName("div");
var textEl = document.getElementById("mytextarea");
var i = 0;
for(i=0;i<divEls.length;i++) {
//alert(divEls[i].id);
textEl.value = divEls[i].id;
}
}
function get_val()
{
var hre = document.getElementsByTagName("src");
var text1 = document.getElementsById("mytextarea");
var text2 = document.getElementsById("mytextarea2");
hre.text1.value=hre.text2.value;
}
</script>
</head>
<body>
<div id="mydiv" onclick="get_id()" style='border-width:1px;border-color:#C0C0C0;border-style: solid;background-color:#C0C0C0;width:130px;height:10px;'>
<a href="#" id="src" onclick="get_val()">ScorpionZ</a></div>
<textarea id="mytextarea"> </textarea>
<textarea id="mytextarea2"> </textarea>
</body>
</html>
Hope it will Clear in more Detail.
Waiting for Reply back
Thanks and Regards
Scorpionz