javascript - Need a button that copies info from one div to another -


i need button can take information entered in first div, , copy second div when press button. however, not want rows, information entered user. appreciated.

i think code using javascript ;)

function copy() {      var fname = document.getelementbyid('fname').value;      var lname = document.getelementbyid('lname').value;      document.getelementbyid('results').innerhtml = fname +", "+lname;      return false;  } 

the "results" id of div result show ;)


Comments

Popular posts from this blog

jquery - Invalid Assignment Left-Hand Side -

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -