score:0

First, check the space between type and name in the first input and also the space between type and value in the second input.

Now, to change the content of the div1, use jQuery's html() method. Something like this:

$("#div1").html("new content");

Related Query

More Query from same tag