Sorry for the cryptic title. no idea what to call it
I just edited a great script I found on your forum that works great for what I need, It adds the text of a DIV to a Textbox when you click on the div, I have edited it to do the same from one textbox to another when you click a button. I just want to know If I can make it so when you click the button and it adds the notes, it also adds a ascending number.
Script:
[CODE]
<html>
<head>
<title>Logger</title>
<script type=”text/javascript”>
function CopyDIV(IDS) {
document.getElementById(‘CopiedDIV’).value
+= ‘=============================n’ + document.getElementById(IDS).innerHTML + ‘nn’;
}
</script>
</head>
<body>
<input type=”button” value=”Store in Notes” onClick=”CopyDIV(textb1.id)”>
<br>
<textarea type=”text” id=”textb1″ value=”sup g” cols=”60″ rows=”8″></textarea>
<br><br>
Notes:
<br>
<textarea type=”text” id=”CopiedDIV” value=”” cols=”60″ rows=”10″></textarea>
</body>
</html>
so input
hello world
text 1.
hello World
text 2.
hello World
and so on. somthing that would invole adding like + ‘i+1’ + but i have no idea how to do this.