Skip to content

Instantly share code, notes, and snippets.

@mikeedwards83
Last active August 29, 2015 14:23
Show Gist options
  • Select an option

  • Save mikeedwards83/018b84d7a46df4c94458 to your computer and use it in GitHub Desktop.

Select an option

Save mikeedwards83/018b84d7a46df4c94458 to your computer and use it in GitHub Desktop.
Append textbox values to html so that they can be copied and pasted.
var textBoxes = $$('input[type="text"]');
for(var i = textBoxes.length-1; i > -1 ; i--){
var txt = textBoxes[i];
var val = txt.value;
txt.parentElement.appendChild(document.createTextNode(val));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment