+ 1
How to make it when i click add and submit it will show out the weather icon
14 odpowiedzi
+ 5
Kyrene
The reason why icon in not showing is that you store the value of the element by doing gelElemetById().value [that icon is because of id ]
You should store a whole element OR create a var for id & append new element with that id to the table
+ 4
Create a variable for selecting the id/class for that font-awesome & append the class then 👍
+ 3
Kyrene please separate the html and js code so that I will understand 🤔
+ 3
Kyrene
You should see the DOM & Events Lessons of JavaScript of SoloLearn then you will get the concept 👍
https://www.sololearn.com/learn/JavaScript/2755/
+ 2
Use Array 👍
+ 2
Kyrene
You should create only one weather variable no matters how many time u declare that var the value is gonna be only one ie.last one
+ 1
Em please can you explain the problem very well...I am confused 😁
+ 1
When i click the radio button then add and submit,the table of weather will show out the weather icon not a text
+ 1
😭
+ 1
So i need to Correction all of this?
var weather=document.getElementById ('w').value;
var weather=document.getElementById ('a').value;
var weather=document.getElementById ('b').value;
var weather=document.getElementById ('c').value;
var weather=document.getElementById ('d').value;
var weather=document.getElementById ('e').value;
var weather=document.getElementById ('f').value;
var weather=document.getElementById ('g').value;
var weather=document.getElementById ('h').value;
var weather=document.getElementById ('i').value;
+ 1
Kyrene
Yeah 👍🤟
+ 1
How to store all the element together?
0
I am seriously trying to understand the function of the add button 🤔🤔🤔
0
I separate it already