$(".popular").hide(); $(document).on("click", ".likeSee__state__filter--item", function (event) { $(".News").toggle(); $(".popular").toggle(); $(".likeSee__state__filter--item").removeClass('active'); $(this).addClass("active"); }); function get_data() { // var desid2=String(desid); // console.log(desid2); // $("#version").val(desid); // $("#version").html(desid); $.ajax({ method: "GET", url: "cases.json", dataType: "json", }) .done(function (msg) { for (var i = 0; i < msg.length; i++) { // if (msg[i].id == id) { var contentarticle = ''; var webtitle = ''; console.log(msg); contentarticle += ' \
By'+ msg[i].articleauthor + '
\