Committee for Economic Development Center - United States The Conference Board uses cookies to improve our website, enhance your experience, and deliver relevant messages and offers about our products. Detailed information on the use of cookies on this site is provided in our cookie policy . For more information on how The Conference Board collects and uses personal data, please visit our privacy policy . By continuing to use this Site or by clicking "OK", you consent to the use of cookies.
2 Close Insights Insights Trending Topics Explore by Center Explore by Content Type Programs Programs Upcoming Events Explore by Type Member-Exclusive Programs Data Centers Centers Our Centers Center Membership Councils Councils Find a Council Council Membership Membership About Us About Us Who We Are Our Community Careers This Week @ TCB Sign In to myTCB™ Insights Insights Trending Topics Explore by Center Explore by Content Type Programs Programs Upcoming Events Explore by Type Member-Exclusive Programs Data Centers Centers Our Centers Center Membership Councils Councils Find a Council Council Membership Membership About Us About Us Who We Are Our Community Careers Sign In to myTCB™ Download TCB Insights App Insights Programs Data Data
Our economic indicators, surveys, and analyses are the most authoritative source of timely, accurate information on business conditions around the globe.
Economic Indicators
Featured Data
Data Central
One-stop, member-exclusive portal for the entire suite of indicators.
ESG Advantage
Benchmark governance, compensation & sustainability against customized peer groups.
Help Wanted OnLine
Track the status of job markets across the US through online job listings.
Labor Markets
Covering all aspects of labor markets, from monthly development to long-term trends.
Centers Centers
Centers offer access to world-class experts, research, events, and senior executive communities.
Councils Councils
Councils are invitation-only, peer-led communities of senior executives that come together to exchange knowledge, accelerate career development, and advance their function.
Membership Membership
Membership in The Conference Board arms your team with an arsenal of knowledge, networks, and expertise that's unmatched in scope and depth.
About Us About Us
The Conference Board is the global, nonprofit think tank and business membership organization that delivers Trusted Insights for What's Ahead™. For over 100 years, our cutting-edge research, data, events and executive networks have helped the world's leading companies understand the present and shape the future.
Learn more about Membership
Members of The Conference Board get exclusive access to the full range of products and services that deliver Trusted Insights for What's Ahead TM including webcasts, publications, data and analysis, plus discounts to conferences and events.
Reasoned solutions in the nation’s interest
Committee for Economic Development The Committee for Economic Development (CED) is the non-partisan, non-profit policy center of The Conference Board that delivers timely insights and reasoned solutions to our nation’s most critical economic and geopolitical challenges.
About CED Since its legacy CEO founders in 1942 developed the Marshall Plan for Europe, CED's mission has been to harness the power of business leadership to chart a path forward to a more prosperous economy with equal opportunity for all Americans.
Policy Issues CED Trustees − leading CEOs and Board Directors − guide CED's trusted research and development of solutions in the nation's interest.
Featured Insights & Programs Press Releases / In the News CED experts and Trustees speak on a host of economic issues and address today's pressing policy issues.
Latest CED Resources Stay informed about today's pressing policy issues.
TYPE
Solutions Briefs
Policy Backgrounders
Webcasts
Charts
Podcasts
Other Reports
Videos
'); currentString='Newest First'; var typeSelect=$(this).attr("data-value"); $('#typeDesktop').val(typeSelect); var searchString=$('#customSearchBox').val(); var count=1; $('#moreCEDResource').empty(); $('#moreCEDResourceCollapse').hide(); $('#viewMoreCEDResource').show(); $('#viewLessCEDResource').hide(); //$(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo=1¢erid="+28+"&sort=&search="+searchString+"&type="+selectedDDValue, method: "get", success: function (response) { if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCount').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); /* var arrayLength = data.length; for (var i = 1; i < arrayLength; i++) { $('#moreCedResource').owlCarousel('add', data[i].trim()).owlCarousel('update'); }*/ } }); }); // Close the options when clicking outside $(document).click(function(event) { if (!customSelect.is(event.target) && customSelect.has(event.target).length === 0) { customSelect.removeClass('open'); optionsContainer.slideUp(); } }); $('body').on('click', '#sortOldestMobile', function() { //$('#moreCEDResourcePageCountMobile').val('1'); $('#sortMobile').val('oldest'); $('#typeMobile').val(''); $('#isMobile').val('1'); $('#typeDesktop').val(''); $('#sortOldestMobile').addClass("active"); $('#sortNewestMobile').removeAttr('class'); $("[type=radio]") .prop("checked", false); }); $('body').on('click', '#sortNewestMobile', function() { //$('#moreCEDResourcePageCountMobile').val('1'); $('#sortMobile').val('newest'); $('#typeMobile').val(''); $('#isMobile').val('1'); $('#typeDesktop').val(''); $('#sortNewestMobile').addClass("active"); $('#sortOldestMobile').removeAttr('class'); $("[type=radio]") .prop("checked", false); }); $('body').on('click', '#mobileTypeSelect', function() { //$('#moreCEDResourcePageCountMobile').val('1'); $('#sortMobile').val(''); var typeSelection=$(this).val(); $('#typeMobile').val(typeSelection); $('#isMobile').val('1'); $('#sortOldestMobile').removeAttr('class'); $('#sortNewestMobile').removeAttr('class'); }); $('body').on('click', '.cedFilterBlueBtn', function() { $('#isMobile').val('1'); var search=$('.customSearchBoxMobile').val(); var sort=$('#sortMobile').val(); var type=$('#typeMobile').val(); var count=1; $('#moreCEDResource').empty(); $('#moreCEDResourceCollapse').hide(); $('#viewMoreCEDResource').show(); $('#viewLessCEDResource').hide(); $('#cedResponsiveModal').modal({ show: false }) //$(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo=1¢erid=28&sort="+sort+"&search="+search+"&type="+type, method: "get", success: function (response) { if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); //$('#moreCEDResource').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCountMobile').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCountMobile').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); /* var arrayLength = data.length; for (var i = 1; i < arrayLength; i++) { $('#moreCedResource').owlCarousel('add', data[i].trim()).owlCarousel('update'); }*/ } }); }); $('body').on('click', '.filterClearBtn', function() { $('#sortMobile').val(''); $('#typeMobile').val(''); $('#sortOldestMobile').removeAttr('class'); $('#sortNewestMobile').removeAttr('class'); $("[type=radio]") .prop("checked", false); var search=$('.customSearchBoxMobile').val(); var count=1; $('#cedResponsiveModal').modal({ show: false }) // $(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo=1¢erid=28&sort=&search="+search+"&type=", method: "get", success: function (response) { if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); //$('#moreCEDResource').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCountMobile').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCountMobile').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); /* var arrayLength = data.length; for (var i = 1; i < arrayLength; i++) { $('#moreCedResource').owlCarousel('add', data[i].trim()).owlCarousel('update'); }*/ } }); }); var currentRequest = null; $(document).on("keyup", ".customSearchBoxMobile", function() { var sortSelect=$('#sortMobile').val(); var typeSelect=$('#typeMobile').val(); var searchString=$('.customSearchBoxMobile').val(); var count=1; if ($(".customSearchBoxMobile").val().length > 2) { //$(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $("#search-anim").removeClass("glyphicon glyphicon-search"), $("#search-anim").addClass("glyphicon glyphicon-refresh glyphicon-refresh-animate") if (currentRequest) { currentRequest.abort(); } currentRequest = $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo="+count+"¢erid=28&sort="+sortSelect+"&search="+searchString+"&type="+typeSelect, method: "get", success: function(response) { ($("#search-anim").removeClass("glyphicon glyphicon-refresh glyphicon-refresh-animate"), $("#search-anim").addClass("glyphicon glyphicon-search")) if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); //$('#moreCEDResource').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCount').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); }, error:function(e){ console.log("Error sending request while searching data-"+e); } }); }else if($(".customSearchBoxMobile").val().length==0){ $("#search-anim").removeClass("glyphicon glyphicon-search"), $("#search-anim").addClass("glyphicon glyphicon-refresh glyphicon-refresh-animate") if (currentRequest) { currentRequest.abort(); } currentRequest = $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo="+count+"¢erid=28&sort="+sortSelect+"&search="+searchString+"&type="+typeSelect, method: "get", success: function(response) { ($("#search-anim").removeClass("glyphicon glyphicon-refresh glyphicon-refresh-animate"), $("#search-anim").addClass("glyphicon glyphicon-search")) if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); //$('#moreCEDResource').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCount').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); }, error:function(e){ console.log("Error sending request while searching data-"+e); } }); } }); $(".allExpertsFourSub").hide(); //$(".allExpertsLatestSub").hide(); $(".allExpertsPolicySub").hide(); $(".allExpertscedFeatureSub").hide(); $(".allExpertscedFeature1Sub").hide(); $('.allexpertsFour').click(function() { $(".allExpertsFourSub").toggle(); if ($(this).hasClass("allExp")) { $(this).html("View Less ") $(this).removeClass("allExp"); $(this).addClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExperts4SubOffset").offset().top - 160 }, 200); } else { $(this).html("View More "); $(this).removeClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExperts4SubOffset").offset().top - 1150 }, 200); $('.allexpertsFour').addClass("allExp"); } }); /*$('.allexpertsLatest').click(function() { $(".allExpertsLatestSub").toggle(); if ($(this).hasClass("allExp")) { $(this).html("View Less ") $(this).removeClass("allExp"); $(this).addClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertsLSubOffset").offset().top - 160 }, 200); } else { $(this).html("View More "); $(this).removeClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertsLSubOffset").offset().top - 1150 }, 200); $('.allexpertsLatest').addClass("allExp"); } });*/ $('.allexpertsPolicy').click(function() { $(".allExpertsPolicySub").toggle(); if ($(this).hasClass("allExp")) { $(this).html("View Less ") $(this).removeClass("allExp"); $(this).addClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertsPSubOffset").offset().top - 160 }, 200); } else { $(this).html("View More "); $(this).removeClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertsPSubOffset").offset().top - 1150 }, 200); $('.allexpertsPolicy').addClass("allExp"); } }); $('.allexpertscedFeature').click(function() { $(".allExpertscedFeatureSub").toggle(); if ($(this).hasClass("allExp")) { $(this).html("View Less ") $(this).removeClass("allExp"); $(this).addClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertscedFSubOffset").offset().top - 160 }, 200); } else { $(this).html("View More "); $(this).removeClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertscedFSubOffset").offset().top - 1150 }, 200); $('.allexpertscedFeature').addClass("allExp"); } }); $('.allexpertscedFeature1').click(function() { $(".allExpertsallexpertscedFeature1Sub").toggle(); if ($(this).hasClass("allExp")) { $(this).html("View Less ") $(this).removeClass("allExp"); $(this).addClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertscedFSubOffset1").offset().top - 160 }, 200); } else { $(this).html("View More "); $(this).removeClass("allExpCss"); $('html, body').animate({ scrollTop: $(".allExpertscedFSubOffset1").offset().top - 1150 }, 200); $('.allexpertscedFeature1').addClass("allExp"); } }); $('.cedTestimonial').owlCarousel({ loop: true, dots: true,autoplay: true, // Enable autoplayautoplayTimeout: 4000, // Set autoplay timeout to 4 seconds (4000 milliseconds) responsive: { 0: { items: 1, touchDrag: true, mouseDrag: true, slideBy:1, dots:true,nav:false, }, 320: { items: 1, touchDrag: true, mouseDrag: true, slideBy:1,dots:true,nav:false, }, 375: { items: 1, touchDrag: true, mouseDrag: true, slideBy:1,dots:true,nav:false, }, 414: { items: 1, touchDrag: true, mouseDrag: true, slideBy:1,dots:true,nav:false, }, 667: { items: 1, touchDrag: true, mouseDrag: true, slideBy:1,dots:true,nav:false, }, 768: { items: 1, touchDrag: true, mouseDrag: true, slideBy:1,dots:true,nav:false, }, 1024: { items: 1, touchDrag: true, mouseDrag: true, slideBy:1,dots:true,nav:false, }, 1190: { items:1, touchDrag: true, mouseDrag: true, dots:true,nav:false, slideBy:1, } } }); //const sortingOptions = document.getElementsByClassName('sortingOptions'); /*const arrowIcon = document.querySelector('.arrow-icon'); sortingOptions.addEventListener('change', function () { const selectedValue = this.value; // Remove the previous arrow class arrowIcon.classList.remove('up-arrow', 'down-arrow'); if (selectedValue === 'newest') { arrowIcon.classList.add('down-arrow'); } else if (selectedValue === 'oldest') { arrowIcon.classList.add('up-arrow'); } console.log(`Sorting by ${selectedValue}`); });*/ $(".cedFilterBtn").click(function() { $(' #cedResponsiveModal').modal({ show: true }) }); var currentRequest = null; $(document).on("keyup", ".customSearchBox", function() { var sortSelect=$('#sortDesktop').val(); var typeSelect=$('#typeDesktop').val(); var searchString=$('#customSearchBox').val(); var count=1; if ($(".customSearchBox").val().length > 2) { //$(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $("#search-anim").removeClass("glyphicon glyphicon-search"), $("#search-anim").addClass("glyphicon glyphicon-refresh glyphicon-refresh-animate") if (currentRequest) { currentRequest.abort(); } currentRequest = $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo="+count+"¢erid=28&sort="+sortSelect+"&search="+searchString+"&type="+typeSelect, method: "get", success: function(response) { ($("#search-anim").removeClass("glyphicon glyphicon-refresh glyphicon-refresh-animate"), $("#search-anim").addClass("glyphicon glyphicon-search")) if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); //$('#moreCEDResource').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCount').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); }, error:function(e){ console.log("Error sending request while searching data-"+e); } }); }else if($(".customSearchBox").val().length==0){ $("#search-anim").removeClass("glyphicon glyphicon-search"), $("#search-anim").addClass("glyphicon glyphicon-refresh glyphicon-refresh-animate") if (currentRequest) { currentRequest.abort(); } currentRequest = $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo="+count+"¢erid=28&sort="+sortSelect+"&search="+searchString+"&type="+typeSelect, method: "get", success: function(response) { ($("#search-anim").removeClass("glyphicon glyphicon-refresh glyphicon-refresh-animate"), $("#search-anim").addClass("glyphicon glyphicon-search")) if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); //$('#moreCEDResource').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCount').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); }, error:function(e){ console.log("Error sending request while searching data-"+e); } }); } }); $('body').on('click', '#viewLessCEDResource', function() { $('#moreCEDResource').empty(); $('#moreCEDResourceCollapse').hide(); $('#viewMoreCEDResource').show(); $('#viewLessCEDResource').hide(); $('#moreCEDResourcePageCount').val('2'); $('html, body').animate({ scrollTop: $("#viewMoreCEDResource").offset().top - 250 }, 200); }); $('body').on('click', '#viewMoreCEDResource', function() { var sort=$('#sortMobile').val(); var type=$('#typeMobile').val(); var isMobile =$('#isMobile').val(); if(isMobile > 0){ var sortSelect=sort; var typeSelect=type; var searchString=$('.customSearchBoxMobile').val(); var count=$('#moreCEDResourcePageCountMobile').val(); } else{ var sortSelect=$('#sortDesktop').val(); var typeSelect=$('#typeDesktop').val(); var searchString=$('#customSearchBox').val(); var count=$('#moreCEDResourcePageCount').val(); } //console.log(sortSelect+','+typeSelect+','+searchString+','+count); if(count >= 2){ $('#viewLessCEDResource').show(); } //$(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo="+count+"¢erid=28&sort="+sortSelect+"&search="+searchString+"&type="+typeSelect, method: "get", success: function (response) { if(response.length > 0){ var data=response.split("^^"); $('#moreCEDResource').append(data[0].trim()); $('#moreCEDResourceCollapse').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide(); } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; if(isMobile > 0){ $('#moreCEDResourcePageCountMobile').val(count); } else{ $('#moreCEDResourcePageCount').val(count); } } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); /* var arrayLength = data.length; for (var i = 1; i < arrayLength; i++) { $('#moreCedResource').owlCarousel('add', data[i].trim()).owlCarousel('update'); }*/ } }); }); $('body').on('change', '#sortSelect', function() { $('#typeSelect').val(0); var sortSelect=$('#sortDesktop').val(); var searchString=$('#customSearchBox').val(); var count=1; $('#moreCEDResource').empty(); $('#moreCEDResourceCollapse').hide(); $('#viewMoreCEDResource').show(); $('#viewLessCEDResource').hide(); //$(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo=1¢erid=28&sort="+sortSelect+"&search="+searchString+"&type=", method: "get", success: function (response) { if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); //$('#moreCEDResource').show(); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCount').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); /* var arrayLength = data.length; for (var i = 1; i < arrayLength; i++) { $('#moreCedResource').owlCarousel('add', data[i].trim()).owlCarousel('update'); }*/ } }); }); $('body').on('change', '#typeSelect', function() { $('#sortDesktop').val(''); var upButton = $("#up-button"); var downButton = $("#down-button"); downButton.removeClass("hidden"); upButton.addClass("hidden"); var container = $("#string-container"); container.html('
Newest First
'); currentString='Newest First'; var typeSelect=$('#typeSelect').val(); var searchString=$('#customSearchBox').val(); var count=1; $('#moreCEDResource').empty(); $('#moreCEDResourceCollapse').hide(); $('#viewMoreCEDResource').show(); $('#viewLessCEDResource').hide(); //$(".modloaddiv-in").html('Fetching More CED Resource ...'); //$('#modloaddiv').show(); $.ajax({ url: "/centers/ced/fetchMoreProduct.cfm?pageNo=1¢erid=28&sort=&search="+searchString+"&type="+typeSelect, method: "get", success: function (response) { if(response.length > 0){ var data=response.split("^^"); $('.cedResourceSection').empty(); $('.cedResourceSection').append(data[0].trim()); if(data[0].trim() == "0"){ $('#moreCEDResourcePageCount').val('0'); } if(data[1].trim() == "0"){ $('#viewMoreCEDResource').hide() } else{ $('#viewMoreCEDResource').show() count=parseInt(count)+1; $('#moreCEDResourcePageCount').val(count); } } else{ $('#viewMoreCEDResource').hide(); $('.cedResourceSection').empty(); $('.cedResourceSection').append('
'); } //$('#modloaddiv').hide(); /* var arrayLength = data.length; for (var i = 1; i < arrayLength; i++) { $('#moreCedResource').owlCarousel('add', data[i].trim()).owlCarousel('update'); }*/ } }); }); });$('body').on('click', '#viewMorePress', function() { var pageCount=$('#pressPageCount').val(); var centerId=$('#pCenterId').val(); if(pageCount == 2){ $('#viewLessPress').show(); } $(".modloaddiv-in").html('Fetching More Press...'); $('#modloaddiv').show(); $.ajax({ url: "/centers/ced/morePress.cfm?pageNo="+pageCount+"¢erId="+centerId, method: "get", success: function (response) { console.log(response); var data=response.split("^^"); $('#morePress').append(data[0].trim()); $('#collapsePress').show(); if(data[1].trim() == "0"){ $('#viewMorePress').hide() } else{ $('#viewMorePress').show() pageCount=parseInt(pageCount)+1; $('#pressPageCount').val(pageCount); } $('#modloaddiv').hide(); }, error:function(e){ $('#modloaddiv').hide(); } });});$('body').on('click', '#viewLessPress', function() { //$('html, body').animate({ //scrollTop: $("#PressReleasesviewLess").offset().top - 800 //}, 200); $('#morePress').html(''); $('#pressPageCount').val("2"); $('#viewMorePress').show(); $('#viewLessPress').hide();}); $(".searchMobIcon").click(function (e) { $(".searchMobCed").toggle();$(".searchMobIcon").hide(); e.preventDefault(); });$(document).click(function(e){ if(!$(e.target).closest('.searchMobIcon, .searchMobCed').length){ $(".searchMobCed").hide();$(".searchMobIcon").show(); } })function toggleIcon(e) { $(e.target) .prev('.panel-heading') .find(".more-less") .toggleClass('glyphicon-plus glyphicon-minus');}$('.panel-group').on('hidden.bs.collapse', toggleIcon);$('.panel-group').on('shown.bs.collapse', toggleIcon);