This time I'm stuck in this part, I need to bring the elements of a JSON, one at a time, but for each time the function is executed, I bring the following one in the JSON, in order, and that when I arrive to the last element start again to show me from the first element.
function datos(){
$.get("https://api.myjson.com/bins/ec20e",
function (data) {
datone = data[0].uno;
document.getElementById("traer").innerHTML = datone;
}, "json");
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button onclick="datos();">datos</button>
<br>
Elemento de json en orden: <span class="traer" id="traer"></span>
I honestly do not have the slightest idea of doing it, sorry. I hope you can understand me, summarizing; from the first click on the btn, it will show the one, then the two, three until it reaches the ten that is the last one of the JSON, and when it does, it will restart and start from the one again.