$(".popular").hide(); $(document).on("click", ".likeSee__state__filter--item", function (event) { $(".News").toggle(); $(".popular").toggle(); $(".likeSee__state__filter--item").removeClass('active'); $(this).addClass("active"); }); const urlParams = new URLSearchParams(window.location.search); let id = urlParams.get('cid'); console.log(id); function get_data() { $.ajax({ method: "GET", url: `json/Columns-${id}.json`, // url:`json/Columns.json`, dataType: "json", }) .done(function (msg) { console.log(msg); let ColumnsContent=""; let ColumnsTag=""; let breadcrumbTitle=""; let article_info=""; let OtherColumns=""; let PopularColumns=""; breadcrumbTitle=`${msg[0].Columnstitle}` article_info=`
'
for(k=0; k