Looked through the topics but found no full answer.
My task is to fill a drop-down with text from another HTML file. Both HTML files are on localhost. Having data in JSON is a requirement.
Initially, came into following:
$.getJSON("feed.html", function (data) {
$.each(data, function (index, item) {
$('#insider').append($('<option</option>').val(item).html(item));
});
});
Although, this does not seems to work as getJSON does not seem to operate with html but .json files instead.
Problem is second file has to remain in .html format. Are there any other possibilities how to have whole html text inserted as json without having separate .json file?