This is an old site that will be taken down soon. Go to https://learnweb.skilling.us for the current site.

Forms

Forms

Forms let users send information to a website. Here's a sample form.

function formData1() { let name = jQuery("#exampleInputName1").val(); if (!name) { name = "nameless"; } let isDog = jQuery("#exampleCheck1").prop("checked"); let message = "Hello, " + name + "!\n\n"; message += isDog ? "Good dog!" : "Too bad you're not a dog."; alert(message); }