Answer the question
In order to leave comments, you need to log in
How to turn html data into json array?
Here is the html
<div id="my-dropzone">
<span>img1.png</span>
<span>img2.png</span>
<span>img3.png</span>
</div>
var drop_images = $("#my-dropzone span").text();
Answer the question
In order to leave comments, you need to log in
var drop_images = $("#my-dropzone span").map(function(){return $(this).text()});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question