Hi I am trying to create programmatically the following HTML section in a specific div, by inserting the Dropdown name and Drop Item. Thank you for any help.
<ul class="nav">
<li class="button-dropdown">
<a href="javascript:void(0)" class="dropdown-toggle">Dropdown 1</a>
<ul class="dropdown-menu">
<li>
<a href="#">Drop Item 1</a>
</li>
</ul>
</li>
</ul>
In simple, I would like to create 1 or 2 methods which accepts 2 strings, 1 for the Dropdown and the other for the Drop Item
$('yourHtmlStringHere').appendTo('#targetElement')