Use JavaScript to Get Value from a Textbox and Display on the Page

Поделиться
HTML-код
  • Опубликовано: 25 сен 2021

Комментарии • 127

  • @sugaslate14
    @sugaslate14 6 месяцев назад +14

    The way you talk not only keeps me engaged, but it’s kind, and calming and you explain things very well. New sub!

  • @bruceboom7378
    @bruceboom7378 Год назад +9

    Bro you're like the Bob Ross of Coding hahaha, so soothing to listen to and really really well explained, thank you a lot!

  • @lanaybrown9409
    @lanaybrown9409 2 года назад +46

    You have no idea how much I needed this, thank you!! 😭😭

    • @jyoti42229
      @jyoti42229 Год назад +3

      Bhai isse bhi km code m or aasan code m bta dungi tujhe

    • @pavanpardeshi4273
      @pavanpardeshi4273 2 месяца назад

      Please say to mi i have need to develop page for text box​@@jyoti42229

    • @Ramdut369
      @Ramdut369 Месяц назад

      ​@@jyoti42229batao na fir

  • @saderanye7555
    @saderanye7555 2 года назад +2

    I have looked everywhere for something to demonstrate this, I just wanted to say thank you so much!

  • @titilolaoduwole4662
    @titilolaoduwole4662 Год назад +3

    I am creating a digital ID card for the online school I am attending and needed to figure out how to get the values from the input and select field to the card section and your video really helped me out. Thank you so much

  • @chigozieobialor1245
    @chigozieobialor1245 Год назад +1

    Amazing tutorial, what I do is just keep codes like these as part of my arsenal and when it is time to work I just apply them. This is JavaScript at it's finest. Nothing complicated.

  • @alexramirez127
    @alexramirez127 2 года назад +3

    You walked through this so well!

  • @jamesprograms00
    @jamesprograms00 8 месяцев назад +4

    I like your javascript coding style. Classic with no confusing lamda functions.

  • @ByzaOCE
    @ByzaOCE Год назад +3

    spent hrs looking for this, and now i see its so simple XD nice work mate

  • @NiceChange
    @NiceChange 10 месяцев назад +1

    I thought this video was excellent!!! The demystifying of grabbing input user data and displaying it is an ability that every programmer needs to master. great work, this really drives it home in its simplicity. Thank you.

  • @噗豆粒-ox6od
    @噗豆粒-ox6od Год назад +14

    Thanks a million! very straightforward tutoring that just covers the topic that I stuck with, and your explanation is very clear and easy to understand👍

  • @imouttaherebro4981
    @imouttaherebro4981 Год назад

    You're the first person who explained that to me. Thanks.

  • @Polarke27
    @Polarke27 Год назад

    Very helpful. Explained everything clear and concise.

  • @lifedude2943
    @lifedude2943 9 месяцев назад

    Thank you so much Ralph, this is what I have been searching for for a while now.
    Thanks again 🤗

  • @flybon1097
    @flybon1097 Год назад

    Excellent work
    You did an important function with superb explanation and within short amount of time
    Please please keep this up

  • @dakid_za
    @dakid_za Год назад

    😅I love this guy the way he explains things makes it simple to understand

  • @Kaleabe25
    @Kaleabe25 Год назад

    I have been searching for the idea of How to interact HTML input to output. Thank you so much

  • @muradiancode
    @muradiancode 11 месяцев назад +1

    Awesome for straightforward tutorial .. And understanding style Next is Level

  • @unidentifiednoun292
    @unidentifiednoun292 2 года назад

    Thank you so much!!!😭😭 I've struggling with this for a while

  • @yarasoler
    @yarasoler 2 года назад

    You explain so well! Just subscribed

  • @davidgillis1970
    @davidgillis1970 2 года назад +1

    Something I would like to see is how to take an input and put it into a for loop that generates that many objects based on the input.

  • @foxit3147
    @foxit3147 Год назад

    Thank you for this video, you explained everything on simple way.

  • @codewithary
    @codewithary 2 года назад

    Thank you a lot, i need to know that how to take a value and print the value in the form and I watched many videos like a 20 videos but why didn't I found this video earlier like It helped me. This video is so underrated.

  • @olegboldrini7538
    @olegboldrini7538 Год назад

    Thank you very much! I learnt a lot thanks to your video! Plus your voice sounds very zen and reassuring :)

  • @shahriaf
    @shahriaf Год назад

    just awesome . Found after two days of searching.

  • @arthurvarteressian4225
    @arthurvarteressian4225 2 года назад

    Thanks dear. Simple and understandable.

  • @LogicalLoom-yj4lx
    @LogicalLoom-yj4lx Месяц назад

    Thank you for clearing my value concept 😇✌

  • @kanvascs
    @kanvascs 2 года назад +1

    Hi Ralph.
    Thank you for making this video. It serves as a beacon of hope for what I need to achieve. How would you use the method similar to change the value of a page title by a simple plain text placed anywhere on the page? Thanks in advance.

  • @anessrahmani1265
    @anessrahmani1265 2 месяца назад

    Love your content

  • @Demonic6000
    @Demonic6000 Год назад

    I got this Question in my interview.. Thank you so much its clear and easy to understand 😃

    • @bruceboom7378
      @bruceboom7378 Год назад

      one way that would work is already creating all the objects, but only giving a certain inputted number of those a visibility. but that wouldnt work for any number then ofc. But I think theres functions in JS that create new children of an object, so that would work better I think

  • @DISCOCAT_
    @DISCOCAT_ Год назад

    you just saved my life thank you so much!!!

  • @hotelariapro
    @hotelariapro Год назад

    In my case I added a text input with a plus and minus button. But the values ​​are not modified as you add more numbers.

  • @amniar8158
    @amniar8158 Год назад

    thanks so much man god bless and never ever give up

  • @websta_05
    @websta_05 Год назад

    Good sir, you earned yourself a new subscriber today.

  • @Quicksand_Girl_2
    @Quicksand_Girl_2 26 дней назад

    Lot of Thanks for Explain..............

  • @anuradasenaratne5252
    @anuradasenaratne5252 2 года назад

    thanks you so much mister, this was helpful

  • @soup_with_lentils9130
    @soup_with_lentils9130 2 дня назад

    Clear explanation thank you very much

  • @Michou-tw4uv
    @Michou-tw4uv 2 года назад

    Thank you so much i so needed this

  • @audreyandremington5265
    @audreyandremington5265 5 месяцев назад

    Thank you so much! This was very helpful!

  • @methodon23
    @methodon23 2 года назад

    First i would like to say thank you to the content provider for taking the time to teach... however can anyone tell me how to do this with the return value of a function?

  • @thebluetoolbox
    @thebluetoolbox 5 месяцев назад

    So Helpful. Thank you. You kinda sound like Owen Wilson. lol.

  • @Name-vl9qq
    @Name-vl9qq 7 месяцев назад

    This is really good content, it helped me a lot. Thank you

  • @htr7254
    @htr7254 Год назад

    Hello! , thanks for a very straightforward lecture. Can we add elementary id from another html page?

  • @saeedghaffari488
    @saeedghaffari488 7 месяцев назад

    simple and useful, wonderful

  • @olamoyegunoluwatobitimothy4326

    This is really helpful

  • @unaiskalathingal9539
    @unaiskalathingal9539 Год назад

    very help full 😍

  • @abdul78183
    @abdul78183 Год назад

    thanks for explaining by good design/type.

  • @dpraajz
    @dpraajz Год назад

    Saved my time.

  • @michaellevi6743
    @michaellevi6743 2 года назад

    Your videos are awesome thank you. So followup, I get it to display for a few sec and it disappears. Did I miss something? I am using Replit

  • @bashita159
    @bashita159 Год назад

    How can I show the whole label with the attribute?
    for example
    John

  • @MDZIAURRAHMANJOY
    @MDZIAURRAHMANJOY Год назад

    Thanks A Ton 😇

  • @tokhenz
    @tokhenz Год назад

    OMG thank you very much sir!!! Very helpful!!!

  • @sowbaranikag6514
    @sowbaranikag6514 10 месяцев назад

    Thankyou so so so much sir!! Thankyou thankyou thankyou🙏🙏🙏🙏🙏

  • @PossumMedic
    @PossumMedic Год назад

    Great! Thank you! 🥰

  • @ventacode
    @ventacode Год назад

    Thank you so much simple and good

  • @joey9784
    @joey9784 Год назад

    thanks my man

  • @akhjgaming7152
    @akhjgaming7152 Год назад +1

    when he changed the variable name from but1 to btn1 his face was just too funny
    🤣🤣🤣🤣

  • @great9640
    @great9640 Год назад

    Thanks sir I understand now what the .value method does. I saw it some javascript password generator project but was not sure what it did. I do now!

  • @athleticmistud
    @athleticmistud Год назад

    for the script with the form input. I need to do similar. but i need the output to be to a different page not the same page as they enter the data on. how would i do this?

  • @imanjallali8258
    @imanjallali8258 Год назад

    Thanks it was help ful..

  • @mattiavacca2111
    @mattiavacca2111 Год назад

    Hey ! Really educating video, me and my friend we are working on a project and i needed something quite like this but with a scripted immediate answer, how can i do that ?
    I'm already working on it but some help would be amazing.
    The input value sent it dosen't matter, as long as the user is sending something, after that i need to create a log into the logbox, and you just show how to do that, which is amazing but, after this, how can i make spawn another message ? like if it was from a bot.

  • @muhammadsls
    @muhammadsls Год назад

    Thanks for the explanation
    What I want to know is that the name of the compiler that you are using with?
    Please Help!

  • @AlmostRipeOrange
    @AlmostRipeOrange Год назад

    Nice ❤! Thanks

  • @williamcarvell4644
    @williamcarvell4644 Год назад

    I just want you to do an owen wilson impression.

  • @alisonmiu
    @alisonmiu 6 месяцев назад

    How do I submit and still display the text on the page? Do you have a video showing how to do this? Thanks a bunch! 😇

  • @Amigo-Da-Lua
    @Amigo-Da-Lua Год назад

    I never comment at YT videos but, man, you REALLY helped me with this one.
    Thank you a lot

  • @Ramdut369
    @Ramdut369 Месяц назад

    Thanks so much ❤

  • @minalsalvi4127
    @minalsalvi4127 2 года назад +1

    appreciate it !

  • @najmulislamchowdhury5938
    @najmulislamchowdhury5938 Год назад

    You're the best

  • @Nestumk
    @Nestumk 9 месяцев назад

    Dear God thank you for this wonderful man.

  • @user-ih2zp9jg7f
    @user-ih2zp9jg7f 7 месяцев назад

    Hi Ralph, thank you for the explanation.
    I am working on something similar (star rating).
    Could you make another tutorial in Javascript about that, because I am struggling here?
    Important to know:
    the stars (after submit) should appear on another page in a table,
    where they should be automatically saved,
    newest data in the top row
    I went through many tutorials, but couldn't find the solution.
    Thank you in advance.

  • @wallypanlab
    @wallypanlab Год назад

    thanks, super usefull!

  • @sooryajith.k.s1554
    @sooryajith.k.s1554 11 месяцев назад +1

    Anyone know if I make a input box and I enter a message there and I click a button and after click I need pop up message with the same text that I enter anyone know to get this.

  • @user-nr4lm5gl1i
    @user-nr4lm5gl1i Год назад

    Thanks a million

  • @ogechukwuibe8094
    @ogechukwuibe8094 Год назад

    Thank you so much

  • @madness3692
    @madness3692 2 года назад

    thanks man

  • @sangmaneewutthip299
    @sangmaneewutthip299 Месяц назад

    Could you make a code for display the value from javascript into the input? to pass the demo variable/value on javascript into the input text and convert it to a variable that can be used with PHP.

  • @sushma9325
    @sushma9325 2 года назад +1

    Great Content Ralph.. Could you please help me with one thing.. How to take the input from the user and display it in same window as popup/alert?

    • @medooazmi
      @medooazmi 2 года назад

      you could use the alert function in javascript:
      function anyfunc() {
      alert(txt1.value);
      }

    • @willa9791
      @willa9791 Год назад

      or prompt() global function also

  • @Awakened_Pot
    @Awakened_Pot Год назад

    Thaaankss!!!!!

  • @designers_rockwall
    @designers_rockwall Год назад

    thx man

  • @ImranMolla-et3gp
    @ImranMolla-et3gp 6 месяцев назад

    very good and easy

  • @eternallyMarsh
    @eternallyMarsh 9 месяцев назад

    Awesome tutorial
    Although, the text isn't stored permanently, when I remove the text from the text box, even the text in the paragraph tags disappear
    How do you keep the text

  • @sallen1599
    @sallen1599 4 месяца назад

    Is there any way to do this if i dont use const but var ?

  • @babycoder-shantanusaha5218
    @babycoder-shantanusaha5218 2 года назад

    Thanks 👍😊 guy

  • @k0la_Jr
    @k0la_Jr 7 месяцев назад

    thanks fr

  • @ahsrakib5913
    @ahsrakib5913 Месяц назад

    From India ❤

  • @gurpreetsingh-vn7wp
    @gurpreetsingh-vn7wp Год назад

    can we make make such option that input text is directly shown on that box and skipping that button functionality

    • @SixMinutesSmarter
      @SixMinutesSmarter  Год назад +1

      for sure. I bet having the function get invoked oninput or onchange would be cool. As the user types new letters, the function can display the message. Or, append the changes to the existing message.

  • @delcarmat
    @delcarmat 2 года назад

    thanks!

  • @DSureshKumar
    @DSureshKumar Год назад

    How you have declare function.. I'm not getting result..

  • @fortune4826
    @fortune4826 2 года назад

    How do I direct it to another page

  • @rogeriomartinez7828
    @rogeriomartinez7828 2 года назад +3

    Thanks a bunch!
    I was looking for this and immediately signed up to your channel.
    One extra step I am trying and still not able to accomplish is,
    How can I have more than one input box and still show into the same output paragraph box?
    Also, Can I include the name of the input box as well?
    Thanks, Roger

    • @TheRealGeorge
      @TheRealGeorge 2 года назад

      You could do it in multiple ways. Easiest would be to just get all inputs from and then connect them using +, then using
      to create new lines if needed

  • @bollynews9657
    @bollynews9657 2 года назад

    How to excute another value taken from input

  • @editee8063
    @editee8063 Год назад

    Output box don't appear ☹️

  • @amanathussain1024
    @amanathussain1024 2 года назад

    What to do if I want to instead change to another page through a link

    • @medooazmi
      @medooazmi 2 года назад

      or for example if you want to change to internal page html file:
      link

  • @haha11268
    @haha11268 Год назад

    how do i display it in a list ? pls answer

  • @raflyakbar8216
    @raflyakbar8216 Год назад

    hello sir, i have an homework that input text, then show it in another page please answer.

  • @belindazhang426
    @belindazhang426 Год назад

    Hello sir, I typed exactly your syntax, but it did not work. It works when nesting a button click function with the fun1 function, and add the onclick attribute to the button. So weird. If the nested function works while the single-standing function does not work for me.

    • @belindazhang426
      @belindazhang426 Год назад

      Hi I solved the problem, Looks like the const variable must be put within a {} block.

  • @clarkepeters22
    @clarkepeters22 2 года назад

    I think your awesome. Good tutorial. Good teaching style.

  • @JagTheRipper
    @JagTheRipper 6 месяцев назад

    Hi for some reason I have tried all tutorials on RUclips, even this simple example but I can not seem to get the .value function to work.

    • @Lkdytz
      @Lkdytz Месяц назад

      Inside the brackets you need to add value="text for button" near the end of the input type/button.

  • @bht7206
    @bht7206 4 месяца назад

    Anyone know how to clear the text in the inputbox at the same time will not clear the data that display out .