Skip to content

Instantly share code, notes, and snippets.

/* Here is your chance to take over Socrates!
Spend 10 minutes on each of the following hacks to the Socrates website.
Enter them in the console to make sure it works and then save
your results here.
Choose a new pair for each. Add your names to the section you complete.
*/
@llnimetz
llnimetz / form-validator.js
Last active December 22, 2015 09:48 — forked from ksolo/form-validator.js
Form Validation
$(function(){
$("form").on("submit", function(e){
e.preventDefault();
$("li").remove();
var x = $("input[name='email']").val();
console.log(x);
if (x.match(/.+@.+\..{2,}/) === null)
// another way of checking for valid email addresses