JavaScript - How to select an element with getElementsByClassName

preview_player
Показать описание
Select element nods with the getElementsByClassName Method
Рекомендации по теме
Комментарии
Автор

Hi mr full stack i need some help with JavaScript.... i have clickable div tags and hr tags (they represent train stations for a clickable map based journey planner) im trying to make a function where when you click 1 station and click another station e.g. London Victoria and bond street station it displays a div below the image of the map containing this route that the user selected.. and then if the user wants to go on a different route e.g. London Victoria to Oxford Circus station it displays the route for those selected station in the same dive which we created for the london victoria to bind street route ... please could you tell me what the most simplest and easiest way to do this

ZeddyBoi