Message from JavaScript discussions

February 2019

— It’s not finding it


Maybe you want a object / map.

const data = {name: “Name”, phone: 555} // -> “Name”
data[‘name’] // -> “Name”

— Send the html please

— But when I open the html file in browser it does display info in <p> is it possible? I'm confused

Message permanent page

— When I select car from drop down menu, it display info of that car

— That p tag has that id?
Do you create it dynamically?

— The p tag has id="CarDetails"

— Yes dynamic

— I have html and js code

— Html code has the drop down menu and a p tag

— When I select car from drop down , a JavaScript function is called to display car details in p tag

— It sound like the problem here is you execute the assignation before you create the p tag.