👉

Did you like how we did? Rate your experience!

Rated 4.5 out of 5 stars by our customers 561

Award-winning PDF software

review-platform review-platform review-platform review-platform review-platform

Video instructions and help with filling out and completing What 8850 Form Submitting

Instructions and Help about What 8850 Form Submitting

Hey guys, how's it going? My name is Dumb and today I want to take you through the submit event inside JavaScript. So essentially, the submit event is triggered whenever you submit an HTML form. Okay, so I find that it's only useful when you prevent the default behavior of a form. Okay, so in this video, we're going to use the submit event in combination with an HTML form in order to make an AJAX request. Okay, so let's hop inside the HTML for this document. Okay, and inside here we can begin by actually creating a form to work with, right? So down here, I'm going to make a new form and replace the action attribute with an ID and give it a value of "my form". I'll also give it a class of "form" just to add some custom styles. Okay, now I'm not going to put the action or method attribute. The reason for that is because we're going to use AJAX to submit this form. Therefore, the action and method attribute is not required. Alright, so inside the form, we can now create a few fields. Okay, let's make one for a username. So, make a new label for a username with some text saying "Username". And a respective input field of type text with a name of "username" and an ID of "username". Alright, we can copy and paste this for the password field. So, we're going to say "password" and all of these ones can be "password". Okay, so now we have these two fields. I can add a submit button. So, a button of type "submit" and the value of let's just say "login". Okay, so if I save this and refresh the browser, we get this form right here. So, as I said, I've...