HTML Forms and JavaScript

preview_player
Показать описание
This video covers how you can use JavaScript to interact with HTML forms, how to do basic validation, a recommended structure for your HTML forms, and how you can display error messages using JavaScript.

Рекомендации по теме
Комментарии
Автор

I've been crying since yesterday because I couldn't understand my prof when he was discussing this because he wouldn't show us the codes needed and what exactly to do. Videos like these help college students that couldn't cope up in class, thank you so much for uploading this.

gani
Автор

I was looking into how to link my JavaScript to the forms in the HTML and this was perfect.
Clearly and concisely explained - many thanks.

antoniodevcodes
Автор

Thank you for the time creating this video. At the moment some of the things you were talking about goes right over my head but I am determined to learn JavaScript for my job. Thank you, Thank you, and Thank You

Jayghfdhdf
Автор

Thank you Steve! This is very thorough and easy to understand.

lindad
Автор

Man I got my first small project today and this helped me understand JS much more easier. Thank you for this!

Iam_chriscardo
Автор

Thank you very much for this tutorial and sharing the code. I used what I learned to help me make a tool to make an interactive calculation tool for some calculations specific for my industry. (Made all boxes number type and instead of submit box, switched all input boxes to call a function onChange event.)

elaineevans
Автор

Great lesson. So much code to write, so little time. I wrote a nice little subnet mask calculator using JS back in college 20 years ago. Now I don't remember how I did it. If you don't use it, you lose it.

tvs
Автор

You give us a lot, I don't know how to say more than '' Thank you so much, my Boss.''

jsatoz
Автор

Very clearly explained tutorial. Thank you! Answered a question I'd been googling for a few hours and delivered more besides.

djames
Автор

This is so helpful and informative!! Thank you so much for an amazing detailed guiding through forms combining html AND js!!

shakedmadhana
Автор

This is very useful and covers a lot of areas. Looking forward to RegEx video - even a basic one...

iwswordpress
Автор

Really great ! Learned a lot from this . Thanks .

zpelleti
Автор

Thank you for taking the time to create this extremely educational video. I've recycled some of your code to create a very simple form which it's not very complicated nor as elegant as yours. My question is....will you have a suggestion how to convert the form to pdf without showing the button? I've tried the following:
<script>
function printForm(pf)
{
window.print(pf);

}
</script>
</head>
<body>

<h1>Dial-In Messaging Card</h1>
<form id="form-user" action="#" method="post">

<div class="form-box error" data-errormsg="">
<label Name:</label>
<input type="text" id="Institution-Name" autofocus placeholder="Enter Institution Name" tabindex="1">
</div>
<br>
<div class="form-box error" data-errormsg="">
<label for="User-First-Name">User First Name:</label>
<input type="text" id="User-First-Name" autofocus placeholder="Enter User First Name" tabindex="2"/>
</div>
<div class="form-box error" data-errormsg="">
<label for="User-Last-Name">User Last Name:</label>
<input type="text" id="User-Last-Name" autofocus placeholder="Enter User Last Name" tabindex="3"/>
</div>

<div class="form-box error" data-errormsg="">
<label for="UserID-number">UserID number: </label>
<input type="text" id="UserID-number" autofocus placeholder="Enter UserID Number" tabindex="4"/>
</div>

<div class="form-box error" data-errormsg="">
<h3><b>Follow this process to use the DIMC:</b></h3>
</div>

<div class="form-box error" data-errormsg="">
<p>Call this number: ###-###-####</p>
</div>

<div class="form-box error" data-errormsg="">
<p>Enter your 5 digit PIN number and press #</p>
</div>

<div class="form-box error" data-errormsg="">
<p>Follow the prompts</p>
</div>

<div class="form-box error" data-errormsg="">
<p>Need help? Call: ###-###-####</p>
</div>
</form>

<div class="form-box button">
<button Form</button>
</div>

</body>

This will bring me to the printing dialog where I can convert the result to pdf.

It is at this point where I would like to omit the button and convert the form results to pdf.

jaalo
Автор

Thanks for this one. Please how do I find the base.html, css, js and the links for this project, I am a newbie, please help. thanks?

dakozytoms
Автор

??? On the first test. JS reset. It still ask me to fill out the required field. ???

redMaple_QC
Автор

Steve ty for making this video. I'm attempting to create a "video game picker" app. For this app I'm using a form, the thing is I need to create a database and the form(with the aid of JS) must be able to remove certain elements and arrays "onclick", at the end there is a result button that must be pressed to display the results. I'm trying to figure out how to make just the output function properly, any ideas as to how to get js to cooperate or integrate with the <output>?

ashharkausar
Автор

I have a dumb question: why not to use always the querySelector method, in all cases?

VladiGuitar
Автор

Hi, Thank you for this video, Please could you share with me what we can do with javascript, at these days I'm planning to study it and I have worked with both C++& OOP, So I think it won't take a lot of time until i can work with it , so I want to see the abilities of Javascript, I will be so grateful for your help

hussainrajab
Автор

Hi Steve, thanks for presenting and excellent collection on JS. I successfully implemented the validation and making the data persist in Local storage, without any hassle. But when I tried to implement the same functionality on a form that pops up as a Modal, I am just not able to submit the form meaning the modal stays on the screen after clicking on the submit button. Even in this situation everything else functions correctly, that is I am able to reset, log errors and check that there are not failures in the validation process but just cannot submit. I searched and look for it on the net. But found that I am doing everything correct so please if you have any ideas or pointers I can look at or into would be great thanks again.

Froyo
Автор

Hi I'm new to developing. What IDE are you using here? Is this the best?

durtyp