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