if a body div tag has 10 p tags select 3 tag using javascript code example
Example: js select element inside of div
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];
var targetDiv = document.getElementById("foo").getElementsByClassName("bar")[0];