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
Post a Comment