#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

КОМЕНТАРІ • 226

  • @AngelaOrtner
    @AngelaOrtner 4 роки тому +32

    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.

  • @findhowtodo
    @findhowtodo 2 роки тому +9

    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 !

  • @shauryasingh63
    @shauryasingh63 5 місяців тому

    The clarity of speaking and the way you subtly cover the basic concepts is really good. Tanmay rocks!!

  • @mohammedogleh5195
    @mohammedogleh5195 4 роки тому +10

    I was lookin for that action about one week thanks Telusko group

  • @ismailvishal5509
    @ismailvishal5509 10 місяців тому +1

    Thank you, you explained every single step in the video very clearly unlike most other video. Liked and subscribed!

  • @atifjalal3046
    @atifjalal3046 4 роки тому +1

    Me an engineering student. Tq u sir or senior for providing free video tutorial. Thank u soooo much 😍

  • @digitalpainter4402
    @digitalpainter4402 3 роки тому +1

    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

  • @JamesHalpert8555
    @JamesHalpert8555 5 років тому +5

    Delivering the best content as always...thank you Telusko!!!!!!!

  • @adhinabraham1922
    @adhinabraham1922 2 роки тому +1

    thank you for this use full content

  • @TheSkyrimInquisitor
    @TheSkyrimInquisitor 3 роки тому +3

    Thank you! Our lecturers were terrible at explaining JS and especially form actions.

  • @ajalajessica3601
    @ajalajessica3601 7 місяців тому

    thanks so much for this simple and short video. i keep getting lost watching the long ones

  • @bhaveshAdept
    @bhaveshAdept Рік тому

    Short and Valuable - Very Well

  • @anandathawale609
    @anandathawale609 4 роки тому +2

    I was making my website you help me lot thanks man :)

  • @abhivishwakarma3678
    @abhivishwakarma3678 4 роки тому +1

    This vedio is very good for devaloper feelds

  • @DhulkifliGhazi
    @DhulkifliGhazi 5 років тому +7

    the video was fine..I'm hooked on telusko tutorials .. tutors have a vary nice approach on how to impact knowledge

    • @SimpleSnippets
      @SimpleSnippets 5 років тому

      Thank you so much for such positive feedback. Really glad to know this

    • @marvellouschandan
      @marvellouschandan 4 роки тому

      @@SimpleSnippets I subscribed to your channel man! It's really an amazing video. Well explained :D

    • @marvellouschandan
      @marvellouschandan 4 роки тому

      @@SimpleSnippets May I get the playlist link to these videos?

  • @ramasubramanyam.s.6927
    @ramasubramanyam.s.6927 3 роки тому +1

    Thanks a lot

  • @kamsyd13
    @kamsyd13 3 роки тому

    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 !

  • @sukanyapathak2690
    @sukanyapathak2690 5 років тому +4

    Your explanations are really amazing.

  • @cozybreeze6186
    @cozybreeze6186 4 роки тому +1

    really really useful, one of the best form validation videos, many thanks!

  • @DavidTheITGuy.
    @DavidTheITGuy. Рік тому

    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.

  • @monishan1943
    @monishan1943 5 років тому +1

    After I saw this video I got little idea about this validate tq sir

  • @Shreyashrajput762
    @Shreyashrajput762 4 роки тому +1

    Dear sir , how do we get after submit result like student exam result , search light bill etc,

  • @hemavathit6203
    @hemavathit6203 3 роки тому +3

    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?

  • @rizzmax5673
    @rizzmax5673 2 роки тому

    Finally I got perfect and master of validation

  • @kinggRafi
    @kinggRafi 5 років тому +32

    provide the file link in DESCRIPTION for easy learning ;)

  • @vennavvsreddy
    @vennavvsreddy 2 роки тому

    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

  • @imalukselection
    @imalukselection 10 місяців тому

    Excellent Explanation and Fluent English... #thanks

  • @krushnabankar2761
    @krushnabankar2761 4 роки тому +1

    Bhai ek number

  • @silvernaturemusic599
    @silvernaturemusic599 4 роки тому +1

    How do I send data to my php by action method ? If I enter url in it ?

  • @soorajhaveri925
    @soorajhaveri925 Рік тому

    Bro ur explanation is top notch...keep it bro this will help to beginners to pros.....

  • @co109jaimin6
    @co109jaimin6 Рік тому

    it helps a lot to me while building my website thanks

  • @AhamedKabeer-wn1jb
    @AhamedKabeer-wn1jb 4 роки тому +1

    Superb explanation...

  • @vineethkumar2272
    @vineethkumar2272 5 років тому +2

    Waiting for this
    Nice video 👌👌👌

  • @arabajshaikh8411
    @arabajshaikh8411 2 роки тому

    Have been struggling to understand, got it, thank u ❤🌹🙏

  • @hexor8851
    @hexor8851 Рік тому

    u can use required with js just for remove spaces trim() it will be easy maybe?

  • @lebonamangaung3906
    @lebonamangaung3906 5 років тому +2

    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;

  • @deepakreddyt
    @deepakreddyt 3 роки тому

    Very good explaination .i mean u know what are the consequences we face in future so u explained everything .Cool one

  • @SahilSharma-os2mv
    @SahilSharma-os2mv 5 років тому +1

    amazing... i am beginner but got everything u explained

  • @talhasse4188
    @talhasse4188 4 роки тому

    wow this tutorial made the code so easy to understand

  • @Er_IT_prashantjha
    @Er_IT_prashantjha 11 місяців тому +1

    Who is this in place of Reddy sir? 🤔

  • @sairajdas6692
    @sairajdas6692 5 років тому +1

    have you ever across a scenario where onsubmit attribute doesn't work?

  • @NZIT1
    @NZIT1 2 роки тому +1

    Nice explication. But I'm just wondering if it's allowed to have "return " in html as you did into the form container? Thanks

  • @islamictv9725
    @islamictv9725 4 роки тому +1

    Amazing explanation I am from Pakistan

  • @Hum_Sopha
    @Hum_Sopha 5 років тому +1

    If have new videos Please put your text code in descriptions

  • @srikanthreddy6991
    @srikanthreddy6991 5 років тому +1

    Clear explanation, thank you

  • @tri-aayam
    @tri-aayam 3 роки тому +1

    Why are you using light-themed IDE ??

  • @user-ov5ds4rp9x
    @user-ov5ds4rp9x 9 місяців тому

    Very high quality content thank you brother

  • @vaishnavialuru1787
    @vaishnavialuru1787 5 років тому +1

    Proud of video clarity

  • @silvernaturemusic599
    @silvernaturemusic599 4 роки тому

    But if you have alert() + window.location
    Even if you have " required " in form
    It will still redirect

  • @fabrizziocordova5250
    @fabrizziocordova5250 Рік тому

    easy to understand, thanks, this i was looking for

  • @SyedAli-kr6qw
    @SyedAli-kr6qw 4 роки тому +1

    I learned something today. Thanks

  • @ArjunSingh-cy8eq
    @ArjunSingh-cy8eq 4 роки тому +1

    How to achive full validation..any vidio in this channel..

  • @HackerSumitJi
    @HackerSumitJi 4 роки тому +1

    Please make a video on password and email validation in one html document

  • @shaiknafeezahmed9139
    @shaiknafeezahmed9139 3 роки тому

    Awesome & Excellent Video.....Really Appreciated the way he explains.....
    Easily Understand to Everyone great work and good work....❤👍👌

  • @vennapureddybapureddy8290
    @vennapureddybapureddy8290 3 роки тому +1

    Looks like speaker is simple snippet 😍

  • @juniormabusela1019
    @juniormabusela1019 3 роки тому

    I'm highly grateful, thank you so very much, this was helpful for me

  • @studentcodingsolution1795
    @studentcodingsolution1795 3 роки тому

    thanks this is really helpful to understand love from india

  • @gamingtweaks3065
    @gamingtweaks3065 3 роки тому +1

    blank password still not working in js

  • @waasanime2335
    @waasanime2335 Рік тому

    Thank you Thank you Thank you Thank you!!!!

  • @sarikas6600
    @sarikas6600 4 роки тому +1

    Can you please explain angular js tutorial

  • @venkatramana331
    @venkatramana331 4 роки тому +6

    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?

  • @vishnuerema415
    @vishnuerema415 5 років тому +1

    best explanations

  • @anurag9953
    @anurag9953 4 роки тому

    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

  • @priyadarshani4498
    @priyadarshani4498 3 роки тому

    Thank you soo much very helpful video

  • @kripukhadka3387
    @kripukhadka3387 3 роки тому

    Great Video man

  • @muskananand6494
    @muskananand6494 2 роки тому

    Sir how you can add "return" in form tag because "return" statement can only be used within a function body

  • @prakashb1278
    @prakashb1278 3 роки тому +4

    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";
    }
    }

  • @marky1756
    @marky1756 2 роки тому

    This is what I've looking for✅

  • @javascriptdevelopers6458
    @javascriptdevelopers6458 4 роки тому

    Good video, nicely explained.

  • @eb4416
    @eb4416 5 років тому +1

    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?

    • @SimpleSnippets
      @SimpleSnippets 5 років тому +2

      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 ?

  • @AnilYadav-qn3ch
    @AnilYadav-qn3ch 2 роки тому +1

    man you are osmm

  • @swethav395
    @swethav395 2 роки тому +1

    Hi. I tried to use return statement in "form" tag.but it is showing error that it can be used only in fuction body.

  • @sravankumar-v1g
    @sravankumar-v1g 12 днів тому

    When I add method="POST" inside form tag message.html page is displaying error page.
    Why this is happening?

  • @Nexus2UAll
    @Nexus2UAll 5 років тому

    Nice and to the point. Thanks man!!

  • @sudhakarverma8452
    @sudhakarverma8452 5 років тому +4

    From video I got good concepts of action attribute of form
    And this is very amazing video sir

  • @free2all917
    @free2all917 4 роки тому +3

    When I put return function also it's goes on to welcome page.why??

  • @GaneshHosur97
    @GaneshHosur97 4 роки тому

    Hats Off! Very Helpful!

  • @kieran2347
    @kieran2347 4 роки тому

    very nice tutorial

  • @kodishalavinay8084
    @kodishalavinay8084 5 років тому

    Teaching style awesome bro

  • @titumama6238
    @titumama6238 11 місяців тому

    You are great buddy.....😮

  • @wasimzaman2453
    @wasimzaman2453 2 роки тому

    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 ?

  • @bhagyarongala6963
    @bhagyarongala6963 4 роки тому

    Thank you... clear explanation and useful too

  • @MadhusudanBhosale
    @MadhusudanBhosale 5 років тому +2

    Clean coding,
    Proper execution
    And excellent presentation !
    /* happy coding */

    • @SimpleSnippets
      @SimpleSnippets 5 років тому

      Thank you so much ✌️ happy to hear this from you 😇

    • @nomanshah4327
      @nomanshah4327 4 роки тому

      @@SimpleSnippets sir i need help
      My same program is not working plz this out

  • @manojdarling9065
    @manojdarling9065 10 місяців тому

    nice explanation...👍👍👍

  • @sudhakarrotta3626
    @sudhakarrotta3626 5 років тому +1

    Hi bro ..
    Which concepts to learn in Java for Android app development.? .... Please make a video....

    • @SimpleSnippets
      @SimpleSnippets 5 років тому +1

      Core Java ✌️ that would be enough 👍

  • @mansinigam7976
    @mansinigam7976 4 роки тому

    Hi Tanmay,
    In else block you not writing 'return true' ,you have just written 'true' ,still it is working fine .how?

  • @shreeparnabanerjee4823
    @shreeparnabanerjee4823 5 років тому

    What would happen if the form will have more than 2 input boxes ?
    I mean how should I write it?useing while loop statements?🤔

  • @yasararafath4825
    @yasararafath4825 4 роки тому

    Username not defined how to solve

  • @gobirajendiran263
    @gobirajendiran263 5 років тому +1

    Excellent...

  • @DeliberateConfusion
    @DeliberateConfusion 5 років тому +1

    This is PERFECT

  • @umangsharma7447
    @umangsharma7447 4 роки тому

    whoa!! that's a great video! thank u !

  • @shabhreashsugumaran7114
    @shabhreashsugumaran7114 10 місяців тому +8

    U need therapy if U use VS code on loght mode. Stop it get some help

  • @sathiyaraj6572
    @sathiyaraj6572 2 роки тому

    Thank you

  • @hamzazahidulislam3490
    @hamzazahidulislam3490 4 роки тому

    Thank you so much Brother Its working Now

  • @SyedAli-kr6qw
    @SyedAli-kr6qw 4 роки тому

    Wouldn't that trim method also trim out besides spaces?

  • @lubalaltu9827
    @lubalaltu9827 5 років тому +2

    nice video

  • @manojsunar192
    @manojsunar192 10 місяців тому

    What's happened if I make variable outside the function with .value ??help me out

  • @ananthakrishnan7844
    @ananthakrishnan7844 4 роки тому +1

    Can u please tell what editor u r using?

  • @rajaskarandikar5014
    @rajaskarandikar5014 4 роки тому

    My if statement is not working.... Even if I keep both fields blank it redirect me to message.html page

  • @faridally9329
    @faridally9329 26 днів тому

    U are the best bro