Skip to content

Instantly share code, notes, and snippets.

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

  • Save sisiwei/9e39c7692c3ad6adb093 to your computer and use it in GitHub Desktop.

Select an option

Save sisiwei/9e39c7692c3ad6adb093 to your computer and use it in GitHub Desktop.
$('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