// HazaaZOOZ - javaScript- How to get element by id // inside first element by class javascript var targetDiv = document.getElementById("YourId").getElementsByClassName("YourClass")[0];