How do I get the values of an appended element in JavaScript?

I’m creating a calculator that takes multiple time inputs and I need to get the values of a created div element that has been appended.

this is the code for the appended element

let div - document.createElement("div"); 
div.innerHTML = html; 
schedule.appendChild(div.firstElementChild); 

this is the code for the html element being created:

<div class = "times"> 
 <input id = "start" type = "time" value = ""> 
 <input id = "end" type = "time"  value = ""> 
</div> 

I need to get the value of the time inputs that are being created by the JavaScript code, in JavaScript. How do I do this?

104 thoughts on “How do I get the values of an appended element in JavaScript?”

  1. i need loan today, i need loan embassy finder. i need loan to start the business need loan now need a loan fast i need a loan have no credit, serve u cash payday loans, cash advance online, cash advance, guaranteed cash advance loans bad credit. Money management study of those economics, provides business loans.

    Reply

Leave a Comment