say i have HTML stored in a string called "contents" and i want to put it in a div with the id "container"
contents = '<input type="text" name="input" />';
document.getElementById('container').innerHTML = contents;
ive always set the value of an input after its displayed, because i can easily identify it... but this creates a little lag (the text flashes)... so i was wondering if there is a way to set the input's value before displaying it (while its still a string)
thanks,
dracula