Skip to content

Instantly share code, notes, and snippets.

@ajbraus
Created October 15, 2019 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ajbraus/dc4411d1d2e518b6d864129171f1fade to your computer and use it in GitHub Desktop.
Save ajbraus/dc4411d1d2e518b6d864129171f1fade to your computer and use it in GitHub Desktop.
$(document).ready(e => {
$('#make-green').click((e) => {
console.log("make green!")
$("h1").css('color', 'green');
})
$('#make-red').click((e) => {
console.log("make red!")
$("h1").css('color', 'red');
})
// alert('aaaaah')
$("#login-form").submit((e) => {
e.preventDefault();
console.log("form submitted");
$('#logins').prepend(`
<div class="list-group-item">
${$('#email').val()} - ${$('#password').val()}
</div>
`)
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment