#26 Form Validations in JavaScript
Вставка
- Опубліковано 19 вер 2024
- Check out our courses:
Spring and Microservices Weekend Live Batch : bit.ly/spring-...
Coupon: TELUSKO10 (10% Discount)
Master Java Spring Development : bit.ly/java-sp...
For More Queries WhatsApp or Call on : +919008963671
website : courses.telusk...
Instagram : / navinreddyofficial
Linkedin : / navinreddy20
TELUSKO Android App : bit.ly/TeluskoApp
Discord : / discord
THANK YOU!! I've been looking at tutorials for HOURS and this is the only one that was complete, easy to understand, and that actually worked. You saved me so much time and headache.
Bro 🙏 one of the best explanations I ever seen here on UA-cam explaining each step. Very useful and important for all the community. Respect !
The clarity of speaking and the way you subtly cover the basic concepts is really good. Tanmay rocks!!
I was lookin for that action about one week thanks Telusko group
Thank you, you explained every single step in the video very clearly unlike most other video. Liked and subscribed!
Me an engineering student. Tq u sir or senior for providing free video tutorial. Thank u soooo much 😍
Thank Youuuuu You really helped me with it I watched many tutorials but none of em worked . But yours did and you also got a new sub
Delivering the best content as always...thank you Telusko!!!!!!!
thank you for this use full content
Thank you! Our lecturers were terrible at explaining JS and especially form actions.
++
thanks so much for this simple and short video. i keep getting lost watching the long ones
Short and Valuable - Very Well
I was making my website you help me lot thanks man :)
This vedio is very good for devaloper feelds
the video was fine..I'm hooked on telusko tutorials .. tutors have a vary nice approach on how to impact knowledge
Thank you so much for such positive feedback. Really glad to know this
@@SimpleSnippets I subscribed to your channel man! It's really an amazing video. Well explained :D
@@SimpleSnippets May I get the playlist link to these videos?
Thanks a lot
i was unable to find everywhere but somehow i found yours
really thank you for making this tutorial & this really help us out !
keep up the good work !
Your explanations are really amazing.
really really useful, one of the best form validation videos, many thanks!
It's four years ago but thank you and thank you once again!.. was disturbed by forms always now l can tell not any more.
After I saw this video I got little idea about this validate tq sir
Dear sir , how do we get after submit result like student exam result , search light bill etc,
Hi, Thanks for the video it is very helpful and i am trying to execute this form tag and JS file, but JS validation is not working for me. but it is redirecting to another page with welcome message. it is not checking the blank field. can you pls assist me on this?
Finally I got perfect and master of validation
provide the file link in DESCRIPTION for easy learning ;)
Telusuko is a Telugu word think you are a Telugu people, the way you are explaining is good by taking each scenario,I am from Andhra Pradesh
Excellent Explanation and Fluent English... #thanks
Bhai ek number
How do I send data to my php by action method ? If I enter url in it ?
Bro ur explanation is top notch...keep it bro this will help to beginners to pros.....
it helps a lot to me while building my website thanks
Superb explanation...
Waiting for this
Nice video 👌👌👌
Thanks Vineeth ✌️
Have been struggling to understand, got it, thank u ❤🌹🙏
u can use required with js just for remove spaces trim() it will be easy maybe?
how do i make the button to be disabled if either textbox is empty?? i know in csharp you use something like btn1.enabled == false;
Very good explaination .i mean u know what are the consequences we face in future so u explained everything .Cool one
amazing... i am beginner but got everything u explained
wow this tutorial made the code so easy to understand
Who is this in place of Reddy sir? 🤔
have you ever across a scenario where onsubmit attribute doesn't work?
Nice explication. But I'm just wondering if it's allowed to have "return " in html as you did into the form container? Thanks
Amazing explanation I am from Pakistan
If have new videos Please put your text code in descriptions
Clear explanation, thank you
Why are you using light-themed IDE ??
Very high quality content thank you brother
Proud of video clarity
But if you have alert() + window.location
Even if you have " required " in form
It will still redirect
easy to understand, thanks, this i was looking for
I learned something today. Thanks
How to achive full validation..any vidio in this channel..
Please make a video on password and email validation in one html document
Awesome & Excellent Video.....Really Appreciated the way he explains.....
Easily Understand to Everyone great work and good work....❤👍👌
Looks like speaker is simple snippet 😍
I'm highly grateful, thank you so very much, this was helpful for me
thanks this is really helpful to understand love from india
blank password still not working in js
Thank you Thank you Thank you Thank you!!!!
Can you please explain angular js tutorial
Bro its not working i did exactly but no matter if i fill the both the fields or leave them empty always the alert pops up while i submit what might be the problem, i see it like its not at all going to the else part but why?
same
best explanations
in some case u r using var = in funtions, and some cases u r direct getting to getelementbyid, no var is attached how to understand where to go ahead with var copy by vaLUE nd copy by referece part its confusing
Thank you soo much very helpful video
Great Video man
Sir how you can add "return" in form tag because "return" statement can only be used within a function body
I figured out an alternative which doesn't use return in Js function. Code below:
function validate() {
var uname = document.getElementsByTagName("input")[0].value.trim();
var pass = document.getElementsByTagName("input")[1].value.trim();
if(uname.length == 0 || pass.length == 0) {
alert("either of the input value is blank!");
}
else {
document.getElementsByTagName("form")[0].action = "welcome.html";
}
}
This is what I've looking for✅
Good video, nicely explained.
Maybe the question will be answered in the following videos, but to be sure that I don't forget my question:
What if I just got the link to message.html, so the login-form is no obstacle for me as a user. If the user knows the link to the desired page, how do you prevent the access to that page and allow just someone to view it when he has the specific login data?
Pretty good question.Well this kinda falls into a little advance part of validation where this is kinda like a security feature. A simple way to handle this is to store username or a particular token id in the cookies and set it to null at the start and if you go onto this message.html link directly without going through the form, you check this cookie value onto the message.html page at the beginning. if it is null, it will mean you tried to access the message.html page directly without going through the form. if you go through the form page properly you set the username in the cookies to a proper value other than null so then you can load message.html properly. Hope you get the gist of this methodology ?
man you are osmm
Hi. I tried to use return statement in "form" tag.but it is showing error that it can be used only in fuction body.
then what is the solution for it??
When I add method="POST" inside form tag message.html page is displaying error page.
Why this is happening?
Nice and to the point. Thanks man!!
From video I got good concepts of action attribute of form
And this is very amazing video sir
Thank you do much buddy 😇✌️
When I put return function also it's goes on to welcome page.why??
Same problem for mine also
Same
Did u get it.....??
Plzz rply me i have that same prblm
can u tell me the solution to this I am also having the same issue
Hats Off! Very Helpful!
very nice tutorial
Teaching style awesome bro
You are great buddy.....😮
Hello Dear Sir....
in the else part you have returned true, but you did not mentioned the return keyword, is this a short hand for writing return true ?
Thank you... clear explanation and useful too
wow
Clean coding,
Proper execution
And excellent presentation !
/* happy coding */
Thank you so much ✌️ happy to hear this from you 😇
@@SimpleSnippets sir i need help
My same program is not working plz this out
nice explanation...👍👍👍
Hi bro ..
Which concepts to learn in Java for Android app development.? .... Please make a video....
Core Java ✌️ that would be enough 👍
Hi Tanmay,
In else block you not writing 'return true' ,you have just written 'true' ,still it is working fine .how?
What would happen if the form will have more than 2 input boxes ?
I mean how should I write it?useing while loop statements?🤔
Username not defined how to solve
Excellent...
Thank you :-)
This is PERFECT
whoa!! that's a great video! thank u !
U need therapy if U use VS code on loght mode. Stop it get some help
Thank you
Thank you so much Brother Its working Now
Wouldn't that trim method also trim out besides spaces?
nice video
Thank you 😇
What's happened if I make variable outside the function with .value ??help me out
Can u please tell what editor u r using?
Visual studio
My if statement is not working.... Even if I keep both fields blank it redirect me to message.html page
U are the best bro