Skip to content
Permalink
Browse files
add func.js
  • Loading branch information
zhanr committed Nov 18, 2020
1 parent 07c174b commit aae83ffc3682667e95504582ac97a6379949a9aa
Showing 1 changed file with 10 additions and 0 deletions.
10 func.js
@@ -0,0 +1,10 @@
// script for custom href
var customHref = function(tabName) {
var dropdownList = document.getElementsByTagName("a");
for (var i = 0; i < dropdownList.length; i++) {
var link = dropdownList[i];
if(link.getAttribute("data-value") == tabName) {
link.click();
}
}
};

0 comments on commit aae83ff

Please sign in to comment.