VDS Dropdowns

Developer
Size
1,787 Kb
Views
68,816

How do I make an vds dropdowns?

What is a vds dropdowns? How do you make a vds dropdowns? This script and codes were developed by UpBuild on 22 July 2022, Friday.

VDS Dropdowns Previews

VDS Dropdowns - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>VDS Dropdowns</title>
</head>
<body> <script src="js/index.js"></script>
</body>
</html>

VDS Dropdowns - Script Codes JS Codes

// Specify which element(s) and for each one, run a function
// (and pass in the element's index for use later)
$(".submenu a").each(function(index) { // As .each() iterates over each found element in succession, // attach a click handler to them with a function. $(this).click(function() { // When the element is clicked, push data into the dataLayer (and use nested variables). dataLayer.push({ // Using 'event' here allows GTM to listen for, in this case, 'KPI Event' 'event': 'KPI Event', // These are your GA values. They can be static, like 'nav', or... 'event.category': 'top nav', 'event.action': $(".submenu a").eq(index).text().trim() + " click under " + $(".submenu a").eq(index).parents("li.sub").children("a").text().trim(), // dynamic, powered by jQuery and the "index" we passed in previously. 'event.label': $(".submenu a").eq(index).attr("href") }); });
});
VDS Dropdowns - Script Codes
VDS Dropdowns - Script Codes
Home Page Home
Developer UpBuild
Username upbuild
Uploaded July 22, 2022
Rating 3
Size 1,787 Kb
Views 68,816
Do you need developer help for VDS Dropdowns?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

UpBuild (upbuild) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!