Это видео недоступно.
Сожалеем об этом.

Retrive Data From Inputbox And Print In The Same Page On Table Using JavaScript

Поделиться
HTML-код
  • Опубликовано: 27 авг 2018
  • This video contains the tutorial of retrieving data from the input box and print them on a table on the same page where the table row will be increased dynamically. To learn this you need to know the basics of Html, CSS & JavaScript.
    In this tutorial, we'll be handling the basics of data processing and display with Javascript. The inputs your user gives in the input text boxes should be processed by our Javascript code and displayed in the desired format in a table.
    This video is made in the Bengali language. If you face any problems or have anything to say, let me know in the comment section.
    Source code: github.com/sunnny4u/Retrive-u...
    If this video helped you like this, comment and SUBSCRIBE..!
    Also visit our Facebook page: / codespathshala

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

  • @vagmishri8313
    @vagmishri8313 3 года назад

    Very nice 👌👌

  • @SumanDas-dx7et
    @SumanDas-dx7et 3 года назад

    I searched this type of video so many days.

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Glad that i could help, stay tuned for more videos like this.

  • @pansiluzoysa6899
    @pansiluzoysa6899 3 года назад

    Very helpful,
    Very very thank you

  • @zakariahossain5149
    @zakariahossain5149 5 лет назад +3

    Great initiative brother. Go ahead.

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

    thank you brother it helped me a lot

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

      You are welcome.
      Hit like and Subscribe please.

  • @saidulshaik242
    @saidulshaik242 4 года назад +1

    Logical!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @ecc-education
    @ecc-education 3 года назад

    too good

  • @nishantshankarkhan4879
    @nishantshankarkhan4879 6 лет назад +1

    Darun

  • @rohitrao991
    @rohitrao991 3 года назад

    To much helpfully love it , what if i want all the above after pressing add in one single cell , please suggest

  • @rachimaduranga2770
    @rachimaduranga2770 3 года назад

    how to modify it to add Total ,Average and Grade ??

  • @akashtiwari3239
    @akashtiwari3239 3 года назад +1

    Thanks mate...

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

    Nice work

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

    By using this inputs :
    Loan Amount,
    Annual Interest Rate,
    Loan Period
    I want to calculate the Grid as :
    Payment No
    Payment Amount
    Principal Amount Paid
    Interest Amount Paid
    Loan Outstanding Balance
    From the Loan Period Grid rows want to add
    if the Loan Period is 36 the grid want to calculate the 36 rows
    is it possible in this.
    Please reply this for me

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Yes it's possible.

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

      sir, can u add Date of birth with select option tag and gender radio button and it will excuted in like this only and

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

    Pls how do I create a button that delete the input when clicked on.. thanks

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

      Contact our facebook page please. Here is the link: www.fb.com/codespathshala

  • @jamshidkodirov3406
    @jamshidkodirov3406 4 года назад +1

    Thanks

  • @gauravkhangar91
    @gauravkhangar91 3 года назад +1

    Hello sir I want to dynamically store image in the variable, Please suggest me some thing.

    • @CodesPathshala
      @CodesPathshala  3 года назад

      stackoverflow.com/questions/20561056/how-to-store-dynamic-image-at-client-side
      Check this out

  • @siddheshwarsarang2663
    @siddheshwarsarang2663 3 года назад +1

    can you please create a video in which you create 2 separate web pages one having only table and other having only input box please

    • @CodesPathshala
      @CodesPathshala  3 года назад

      We will try to do that. Meanwhile, you can do this-Write the js code in a separate file, and link those 2 html file( 1 having input box ,another having table )

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

    How to display corresponding row values like we have create button for each row when we click on that button corresponding row values should display

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

      Could you please elaborate a little more

  • @nareshnagaraj-kx1xb
    @nareshnagaraj-kx1xb Год назад

    thanks da

  • @saumitras.9101
    @saumitras.9101 2 года назад

    good video

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

    Suppose we have two tables; Teens and Adults. If the age is less than 20 then the data is entered onto teen table and if age is greater than 20, then the data is added to adults table,. How do we achieve this.?

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

      Please contact our Facebook page, because we won't be able to share files here. Send us a message here : fb.com/codespathshala

  • @lavanyakappareddi8957
    @lavanyakappareddi8957 3 года назад +1

    Hii where do I get the explanation on English for script code written in this video.

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Documentation of this script code is not available. If you can show it to script coder, then he/she can explain it. I could explain as well but it would become a long text.

  • @pansiluzoysa6899
    @pansiluzoysa6899 3 года назад

    Good

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

    Great work..... I want keep data after refresh the page or data will freeze after page refresh... please guide me for that... Thanks...

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

      You need to you database for that. You can use your local storage, store your data there and fetch the data each time you refresh. Or you can use databases like SQL, MySQL or others.

  • @syedabdullah7049
    @syedabdullah7049 3 года назад

    goood yr

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

    sir please make video on how I can add & print data using crud method.🤔

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

      Thank you for your comment. We will try to make a video on this.

  • @daredevil5371
    @daredevil5371 3 года назад +1

    is there anyway for me to save the data in the table and have it re appear every time you launch the webpage?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      In that case, you need to use Database.

    • @daredevil5371
      @daredevil5371 3 года назад

      @@CodesPathshala DB are so hard I’ve been using them for a minute but thank you for the reply

  • @akankshasharma432
    @akankshasharma432 5 лет назад +2

    i have to write all code on sublime but not showing the deails in table ......why ????? pleaze can You help me out ...please its urgent .....sir

  • @akhilkazi1454
    @akhilkazi1454 4 года назад +1

    My question is its saved permanently after refresh or close and open again.

    • @CodesPathshala
      @CodesPathshala  4 года назад

      No, it's not saved permanently.

    • @henilpatel9249
      @henilpatel9249 3 года назад

      use localStorage property in javascript for that, it will store the user data permanently, unless you use the localStorage.removeItem method

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

    I'm getting table entries as undefined whenever I hit the 'add' button. What can b done for this?

  • @akhilkazi1454
    @akhilkazi1454 4 года назад

    One more question i want to save submited form on server.

    • @CodesPathshala
      @CodesPathshala  4 года назад

      You have to write js for this, it's possible.

  • @coolgirlsharu
    @coolgirlsharu 3 года назад

    Ok clicking submit button it should get save in backend database table ,how to do this?.
    Explain this, please help me?

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

    If we have to print any radio value or date value or checkbox value then how can we do it

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

      First, you have to check each radio then you can get data by applying conditon.

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

      Read this for more.
      stackoverflow.com/questions/15839169/how-to-get-value-of-selected-radio-button

  • @TahirAli-ms2rq
    @TahirAli-ms2rq 3 года назад +1

    can we create its database to store values?

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

    Please do the video how to save that input given data in that same page

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

      There is video linked at the end of this video. I have shown in the video, how to save the inputted data.

  • @henilpatel9249
    @henilpatel9249 3 года назад +1

    how do we use a 'for' loop to add unlimited user inputs and it keeps adding rows and displaying data in those cells?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      I didn't get it, could you be more precise?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      If it helps,
      using this code you can add unlimited rows and inputs.

  • @pradyumnasurve58
    @pradyumnasurve58 3 года назад +1

    What can i do if we want to see that table on another page ?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Write the js code in a separate file, and link those 2 html file( 1 having input box ,another having table )

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

    Hi can you show how to add a reset button along with the add button?

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

    showing uncaught type error insertCell is not a function..what to do sir

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

      Contact our facebook, we will try our best to help

  • @souravnayon4263
    @souravnayon4263 6 лет назад +1

    I am your 1st viwer and liker

  • @krishnajikulkarni3676
    @krishnajikulkarni3676 3 года назад +1

    Plz tel me how to add edit or delete button for each row

    • @CodesPathshala
      @CodesPathshala  3 года назад

      It will be a long text if i describe those things.

    • @CodesPathshala
      @CodesPathshala  3 года назад +1

      all i can suggest is you can add edit or delete button by using HTML and css. And to make them work you need to add some functions to js file.

  • @payalsahu4479
    @payalsahu4479 3 года назад +1

    Lakin may jo name.... Add karne par show nahi ho raha hai

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Please follow the video accordingly, i guess you are missing something.

  • @vanshikadpatil16
    @vanshikadpatil16 3 года назад +1

    Sir.. then how to retrieve data from one page to another page ??
    Please sir make one video on this topic..

    • @CodesPathshala
      @CodesPathshala  3 года назад

      okay i will make a video on it soon.

    • @vanshikadpatil16
      @vanshikadpatil16 3 года назад

      @@CodesPathshala Thank you sir..

    • @vanshikadpatil16
      @vanshikadpatil16 3 года назад

      Sir.. can you upload a video on this topic tomorrow?
      This step is included in my project but I don't know how to retrieve data and the project deadline is tomorrow night

    • @CodesPathshala
      @CodesPathshala  3 года назад

      I will try.

    • @vanshikadpatil16
      @vanshikadpatil16 3 года назад

      @@CodesPathshala Ok sir..

  • @luisalejandroparedesdeleon4719
    @luisalejandroparedesdeleon4719 4 года назад +3

    As soon as I do click on add, the data disappears ?

    • @CodesPathshala
      @CodesPathshala  4 года назад

      Watch and follow the video accordingly.

    • @rigvedshete45
      @rigvedshete45 3 года назад

      Yes mine too

    • @sonuvijapure2625
      @sonuvijapure2625 3 года назад +1

      in addEventListener fucntion add e.preventDefault() with e argument to fucntion

  • @032-m.muthuanushya2
    @032-m.muthuanushya2 Год назад

    are you refresh the page if i refresh stored datas are removed

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

      Yes, because we are not storing our data, this is just a demo of how you can take user input and retrive.

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

    thank u sir...How to store array values in database using webmethod..?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      There are functions to save js table values as xls file. Please search on google

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

    Very Nice results, i did the same but it didn't work for me, couldn't store any data in table ( i copied every step u made ) , any idea what's going on !?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Contact our facebook page. We can recerive file there and analyze. Facebook page link: fb.com/codespathshala

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

    this table information can convert in card if yes then how i need infinit cards

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

      Yes, Table information can be converted into cards, but this will be a complicated process. If you still want to covert your information into cards, you can do that.
      You can create cards sequentially as per your information.
      You can read this: stackoverflow.com/questions/63216266/convert-rows-of-html-table-into-bootstrap-cards

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

      @@CodesPathshala thank you for replying msg 😊👍🏻😊

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

    Actually how can we control adding plain data to the table??

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

      Follow the link to learn data validation.
      www.w3schools.com/js/js_validation.asp

  • @shamilrahman5858
    @shamilrahman5858 3 года назад +1

    I have a question about how to make the same thing in the video but the difference how to the form is in another web page & table in another web page and how to add the form data to the table pls reaply

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Write the js code in a separate file, and link those 2 html file( 1 having input box ,another having table )

    • @shamilrahman5858
      @shamilrahman5858 3 года назад

      @@CodesPathshala did you mean like linking from the header or the form action ?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      No no, write the js code in a separate js file and link this js file to those two HTML files.

    • @siddheshwarsarang2663
      @siddheshwarsarang2663 3 года назад +1

      @@CodesPathshala will the data inserted will be stored permanently?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      @@siddheshwarsarang2663 No. It's temporary.

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

    Code is perfect,,,,, but After clicking add, I couldn't see entered details.....

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

      Please follow the tutorial properly

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

      Yes, but i don't know where I made mistake.... Ok thanks for your response

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

      @@virudhusamayal7618 If you sill can't find any mistake, please DM on our facebook page or group.

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

      Same problem

  • @asmamooni7530
    @asmamooni7530 3 года назад +1

    Also create this table using php

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

    How I do let the results print in a different template?

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

      make a different table and connect with that table.

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

      @@CodesPathshala Thanks!

  • @jospinking649
    @jospinking649 3 года назад +1

    Are you using local storage ??

  • @shiftfree7497
    @shiftfree7497 3 года назад +1

    how to make this input saved in table after because it does not get saved after refresh it changes again back to normal empty

    • @CodesPathshala
      @CodesPathshala  3 года назад

      If you want to save data then you need to use database.

    • @shiftfree7497
      @shiftfree7497 3 года назад +1

      @@CodesPathshala where can i find that can you help me brother ?

    • @CodesPathshala
      @CodesPathshala  3 года назад +1

      This is a whole different thing, you nee to have ideas about mysql and JavaScript framework. Try watching these tutorials.

    • @shiftfree7497
      @shiftfree7497 3 года назад

      @@CodesPathshala Thanks For The Help Much Appreciated

  • @sajanmahat4764
    @sajanmahat4764 4 года назад +1

    arey sunny bhai

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

    If i refresh browser, all data are vanished

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

      Yes, we are not storing data here. That's why

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

    Sir FIRST NAME + MIDDLE NAME + LAST NAME IN ONE LINE HOW TO JAVA CSRIPT WRITING ✍ HELP ME

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

      Sorry for the late reply, please read this -
      stackoverflow.com/questions/52544089/how-to-create-two-html-buttons-side-by-side

  • @channel-tj6iq
    @channel-tj6iq Год назад +1

    What use template
    Template name
    Please please please please please please please reply
    Reply

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

      Could you be more precise? I don't get it. Which template?

  • @jaish-e-islam
    @jaish-e-islam 2 года назад +1

    How to save this in local storage
    User Access

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

      There is a video in the end screen section. There I have shown, how to save the data in local storage.

    • @jaish-e-islam
      @jaish-e-islam 2 года назад +1

      @@CodesPathshala ok I will check this?🤗

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

    Can make it stay there until i delete it

    • @CodesPathshala
      @CodesPathshala  3 года назад

      u Can, in that case you will have to save data in a file.

    • @harikeshop1033
      @harikeshop1033 3 года назад

      @@CodesPathshala Like a JSON File ??

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

    can you please explain it in english or hindi?

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

      Yes I can. DM us on instagram @codespathshala

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

    Your javascript code is not working

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

      It should work, could you tell us where it is not working?

  • @dafaRPR
    @dafaRPR 4 года назад +1

    how abaout on another page?

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

    I cant run the codes i use notepad 😔

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

      Just convert the file into a HTML file, it doesn't matter which text editor you use.

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

    ভাই Nid কার্ডের তথ্য দিলে এরকম ভাবে টেমপ্লেটে অটোমেটিক বসে যাবে এটার একটা ভিডিও টিউটোরিয়াল দেন

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

      Same vabei kore felano jabe, sudhu index change kore dite hobe.

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

      @@CodesPathshala তারপরেও একটা টিউটোরিয়াল দিলে খুব ভালো শিখা যেত

    • @CodesPathshala
      @CodesPathshala  5 месяцев назад +1

      Sorry bro, I wish amar haate enough time thakto. ami banaya ditam.@@zakariahossain2857

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

    How to show data in another page

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

      stackoverflow.com/questions/25987052/how-to-call-table-from-another-html-page
      This might help

  • @_India2047
    @_India2047 3 года назад +1

    How to set 2 rows in single click of button

    • @CodesPathshala
      @CodesPathshala  3 года назад

      function AddRow(){
      var AddRown = document.getElementById('show');
      var NewRow = AddRown.insertRow(n++);
      var NewRow_1 = AddRown.insertRow(n);
      list1[x] = document.getElementById("fname").value;
      list2[x] = document.getElementById("lname").value;
      list3[x] = document.getElementById("email").value;
      list4[x] = document.getElementById("age").value;
      var cel1 = NewRow.insertCell(0);
      var cel2 = NewRow.insertCell(1);
      var cel3 = NewRow.insertCell(2);
      var cel4 = NewRow.insertCell(3);
      var cell_1 = NewRow_1.insertCell(0);
      var cell_2 = NewRow_1.insertCell(1);
      var cell_3 = NewRow_1.insertCell(2);
      var cell_4 = NewRow_1.insertCell(3);
      cel1.innerHTML = list1[x];
      cel2.innerHTML = list2[x];
      cel3.innerHTML = list3[x];
      cel4.innerHTML = list4[x];
      n++;
      x++;
      }

    • @CodesPathshala
      @CodesPathshala  3 года назад

      use this function, for further queries, contact our Facebook group with the same name as this channel

    • @_India2047
      @_India2047 3 года назад +1

      @@CodesPathshala Thank you very much Sir.

    • @CodesPathshala
      @CodesPathshala  3 года назад

      @@_India2047 You are welcome

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

    Not show details

  • @TahirAli-ms2rq
    @TahirAli-ms2rq 3 года назад

    How can we delete any entry here?

    • @CodesPathshala
      @CodesPathshala  3 года назад

      it's not possible to write whole thing in a comment.
      Although you can search on Google, how to delete an array index. And also learn about OnClick() function.

    • @TahirAli-ms2rq
      @TahirAli-ms2rq 3 года назад +1

      @@CodesPathshala Can I contact you somehow? I want to discuss some things. I am using your code in my websites and i am facing some difficulties

    • @CodesPathshala
      @CodesPathshala  3 года назад

      contact our facebook page facebook.com/codespathshala

    • @poojithareddy3318
      @poojithareddy3318 3 года назад

      @@TahirAli-ms2rq Hey! Did you find the solution for it?

    • @TahirAli-ms2rq
      @TahirAli-ms2rq 3 года назад

      @@poojithareddy3318 nope

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

    Is this possible to display the input as blank after clicking add...

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

    doesnt work

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

      It should work. If it doesn't work, you can contact us on our fb page.
      link: facebook.com/codespathshala

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

    Hi

  • @dillipmohapatra3530
    @dillipmohapatra3530 11 месяцев назад

    IMAGE NOT CLEAR

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

    mg sa hwa hi ni very sad

  • @shashithosar4778
    @shashithosar4778 4 года назад +1

    Rhus video has no carity.

    • @CodesPathshala
      @CodesPathshala  4 года назад

      What do you mean.!

    • @shashithosar4778
      @shashithosar4778 4 года назад +1

      @@CodesPathshala this video is not clear to see. That's only sir. Ur explanation is clear.

    • @CodesPathshala
      @CodesPathshala  4 года назад

      May be because of dark theme it wasn't clear to see.

    • @shashithosar4778
      @shashithosar4778 4 года назад +1

      @@CodesPathshala u are right. Sir make video on user inputs stored in array of object then display on html.

    • @CodesPathshala
      @CodesPathshala  4 года назад

      Thank you for your suggestion, we will try to make a video on it.

  • @dopamine_Seeker
    @dopamine_Seeker 3 года назад

    your approach is not correct though so many bug

    • @CodesPathshala
      @CodesPathshala  3 года назад

      Thank you for your valuable opinion, could you please tell us about the bugs.!

    • @aditideshmukh2101
      @aditideshmukh2101 3 года назад +1

      @@CodesPathshala want to get the delete and edit link when the data is displayed on the table...how to get it

    • @CodesPathshala
      @CodesPathshala  3 года назад

      @@aditideshmukh2101 I will get back to you, meanwhile you can watch this-love2dev.com/blog/javascript-remove-from-array/