Last active
August 29, 2015 14:16
-
-
Save sisiwei/9e39c7692c3ad6adb093 to your computer and use it in GitHub Desktop.
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
| $('input').click(function(){ | |
| // what does $(this) mean? | |
| // what is the html element that we are interacting with, right now? | |
| var inputValue = $(this).val(); | |
| var checkedOrNot = $(this).prop('checked'); | |
| // Write if/else statement to decide what to do if it's checked, or not checked. | |
| // if it's checked, add it to the textarea | |
| // if it's not checked, replace it with "" | |
| // Make sure that when someone clicks the tweet button, you have the most up-to-date tweet. | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment