India's Best ELSS Mutual Funds to Invest in 2024 (2024)

'; } ul.append(li); return li; } }); } if (typeof webengage != "undefined" && webengage.options) { webengage.options('webpush.registerServiceWorker', false); } // MF Search - start var mfGlobalSearchIcon = document.querySelector('.mfGlobalSearchIcon'); var mfGlobalSearchBar = document.querySelector("#mfGlobalSearchBar"); var body = document.querySelector("body"); mfGlobalSearchIcon.addEventListener("click", searchBarOpen ); document.querySelector(".search-backdrop").addEventListener("click", searchBarClose ); document.querySelector("#mfGlobalSearchBar .back-btn-arrow").addEventListener("click", searchBarClose ); function searchBarOpen() { mfGlobalSearchIcon.classList.add("hideIcon"); mfGlobalSearchBar.classList.add("searchIn"); mfGlobalSearchBar.classList.remove("searchOut"); body.classList.add("searchOpen"); document.getElementById("mfGlobalSearchInput").focus(); } function searchBarClose() { mfGlobalSearchIcon.classList.remove("hideIcon"); mfGlobalSearchBar.classList.remove("searchIn"); mfGlobalSearchBar.classList.add("searchOut"); body.classList.remove("searchOpen"); } // MF Search - end var pageUrl = location.href; var searchBarClicked = false; $("#mfGlobalSearchBar").on('click', function(e){ if(!searchBarClicked){ customGaEvents("Search", "Search Bar Clicked", pageUrl); searchBarClicked = true; } }); // Check input value lenght > 3 character $("#mfGlobalSearchBar input").on('input', function(e){ if(e.target.value && e.target.value.length >= 3){ customGaEvents("Search", "Search Input", e.target.value + " - " + pageUrl); $(".mf-search-wrap").addClass("hidden-item"); $(".clear-text").removeClass("hidden-item"); } else{ $(".mf-search-wrap").removeClass("hidden-item"); $(".clear-text").addClass("hidden-item"); } }); $("body").on('click', ".ui-autocomplete li.ui-list-item a", function(e){ customGaEvents("Search", "Option Selected", e.currentTarget.innerText + " - " + pageUrl); }); // Show Trending Data $("#mfGlobalSearchBar input").focus('input', function(e){ setTimeout(function(){ showTrendingData(); },200) }); // to animate Input width $("#mfGlobalSearchBar input").focus('input', function(e){ $("#mfGlobalHeader").addClass('serach-active'); }); function showTrendingData(){ $(".mf-search-wrap").removeClass("hidden-item"); if($(".clear-text").hasClass("hidden-item")){ $(".mf-search-wrap").removeClass("hidden-item"); $("#mfGlobalSearchBar input").val(''); } else{ $(".mf-search-wrap").addClass("hidden-item"); } } // Hide Trending Data $("body").click(function(e){ if(window.innerWidth > 991){ $("#mfGlobalHeader").removeClass('serach-active'); $(".mf-search-wrap").addClass("hidden-item"); } }); // To Prevent Body Click $("#mfGlobalHeader, #mfGlobalSearchBar .searchBox,.nextItem,.prevItem,.mf-search-wrap").click(function(e){ e.stopPropagation(); }); // clear input value $(".clear-text").click(function(){ if($("#mfGlobalSearchBar input").val() != ""){ $("#mfGlobalSearchBar input").val(''); $(this).addClass("hidden-item"); $(".mf-search-wrap").addClass("hidden-item"); document.getElementById("mfGlobalSearchInput").focus(); showTrendingData(); } }); // for Search text bold function applyBoldFilter(str, searchTerm) { var regX = new RegExp('(' + searchTerm + ')', 'ig'); str = str && str.replace(regX, "$1") return str; } });})();// Fetch Search Resultfunction fetchMFSGlobalchemeResults(request, response, minLength = 3) { if(request.term.trim().length < minLength) return; $.ajax({ type: 'get', url: '/api/mffeed/mutual-funds/mf-search/' + request.term, contentType: 'application/x-www-form-urlencoded', success: function (data) { // data = JSON.parse(data); if (data && data.mfBasicDetailList && data.mfBasicDetailList.length > 0) { var schemeResponseData = data.mfBasicDetailList; schemeResponseData = schemeResponseData.map(function (item) { return { 'isAmc':true, 'label': item.parentName, 'value': item.schemeId, 'url': item.sdWebUrl, 'logo':item.logoUrl }; }); response(schemeResponseData); } else { response( [{'label': 'No results found', 'text': 'It seems we can't find any results based on your search.', 'scripCode': ''}] ); } } });}

India's Best ELSS Mutual Funds to Invest in 2024 (2024)
Top Articles
Latest Posts
Article information

Author: Laurine Ryan

Last Updated:

Views: 6404

Rating: 4.7 / 5 (57 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Laurine Ryan

Birthday: 1994-12-23

Address: Suite 751 871 Lissette Throughway, West Kittie, NH 41603

Phone: +2366831109631

Job: Sales Producer

Hobby: Creative writing, Motor sports, Do it yourself, Skateboarding, Coffee roasting, Calligraphy, Stand-up comedy

Introduction: My name is Laurine Ryan, I am a adorable, fair, graceful, spotless, gorgeous, homely, cooperative person who loves writing and wants to share my knowledge and understanding with you.