Last active
August 29, 2015 14:23
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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