Hi I want to create a div above every textarea field with its content so it will be printable. However for the first 2 fields the content is the same in the both divs. Can anyone see why?
// JavaScript Document
$(document).ready(function(){
$(‘textarea’).each(function(index) {
$(‘<div class=“print”></div>’).insertBefore(‘textarea’);
var textindex = $(‘textarea’).val();
$(“div.index”).text(textindex);
});
});
Steven