Hi all,

I would like to populate a testfield with the content of another textfield.

Textfield 1, user input. on blur populate textfield 2 with the content of textfield 1.

This is what I am working with:

function fill() {
   var a =document.getElementById("textfield1").value;

<input name="textfield1" type="text" class="roomno" id="textfield1" size="6" onblur="fill():" >

<input name="textfield2" type="text" id="textfield2" size="6">
For whatever reason this is not working. Can anyone see what I am doing wrong.

Many thanks in advance.