Last active
December 23, 2015 18:09
-
-
Save Erliz/6674176 to your computer and use it in GitHub Desktop.
Combat-m question selector
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
| $('#ctl00_ContentPlaceHolder1_LearningProductContainer').append( | |
| $('<input id="clipboard" value="" /><button id="clipper">clipper</button>') | |
| ); | |
| $('#clipper').click(function(event){ | |
| event.preventDefault(); | |
| var input = $('#clipboard'); | |
| input.val($('.QuestionText').text().trim()); | |
| input.select(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment