admin管理员组文章数量:1334311
I am tasked with creating a subnav in the body of our custom-built pages. The nav's last item is supposed to be a clickable dropdown (a "more" button) that can dynamically populate if extra pages are added via the dashboard. I'm trying to figure out how to code this in PHP and JS without a plug-in. Any sort of point in the right direction is greatly appreciated!
I am tasked with creating a subnav in the body of our custom-built pages. The nav's last item is supposed to be a clickable dropdown (a "more" button) that can dynamically populate if extra pages are added via the dashboard. I'm trying to figure out how to code this in PHP and JS without a plug-in. Any sort of point in the right direction is greatly appreciated!
Share Improve this question asked May 21, 2020 at 21:05 bfoley_teamugbfoley_teamug 111 bronze badge1 Answer
Reset to default 0Well, here's my best shot, although when I add another item to the dropdown, the styling gets weird. https://codepen.io/bfoley650/pen/PoZwKeb
本文标签: menusHow to dynamically populate a dropdown
版权声明:本文标题:menus - How to dynamically populate a dropdown 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742363637a2460850.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论