Adding Array Elements Dynamically #27
Replies: 5 comments 2 replies
-
First thing is, as there is no comments in the code, I am getting lost trying to understand what you have typed. So, as you grow and learn as a developer, please add some comments to your code, so others, like me, can understand what is happening. Now, coming to the problem here. if you are thinking of storing things and then showing them, especially arrays, you should look at the following two topics. Topic 1 you should did into local storage. here are some links that can help you
Topic 2 looks like you are getting serious about DOM manipulation. I would strongly recommend that you wait till we begin React JS (which we will be doing very soon in the batch). Another option is, if you want to do DOM (without React JS), then, I would like you to check out jQuery. These days, we don't use jQuery that much, but, as you are exploring actively, it's not a bad idea to learn this library. Let me know if this solves you problem. If it does not, let me know and we will work together and solve this issue, one step at a time. Jay. |
Beta Was this translation helpful? Give feedback.
-
Hi Jay, |
Beta Was this translation helpful? Give feedback.
-
@Jay-study-nildana Please help in solving |
Beta Was this translation helpful? Give feedback.
-
@geethabathula I tried to encounter this problem but i dont know why it is showing this |
Beta Was this translation helpful? Give feedback.
-
I have started doing some research into this. Let's solve this together. I have some questions.
So, once you give some answers, we can work together and rebuild this code from scratch. I will wait for your reply. Thanks. Jay. |
Beta Was this translation helpful? Give feedback.
-
Hi @Jay-study-nildana ,
I was attempting to store data from input field into an array. and displaying the data entered onclick. Even showing the previous array data as well. I was not able to store prev data everytime on click the array is getting empty and only one value is being displayed.
Here is the link to pen https://codepen.io/geethabathula/pen/qBJpmmY
Please help me solving this.
Thanks and Regards
Geetha Supriya Bathula
Beta Was this translation helpful? Give feedback.
All reactions