On this list, the user can create as many sub-folders as they wish. I need to loop through this list and create a `<select><option...` drop down list showing this list.
var listItems = $(".inbox-nav").find("li");
$('.foo').prepend($(listItems).html());
I know I can duplicate my list however for each li .text() I need to translate to `<option>Text Value</option>` and furthermore each tier I need to add the class `'tier' + Tier_Value` so my example code would turn out to look like;
Previously prior this update, the drop down was showing certain `<li></li>` `.text()` values from all their `.children()` however I've just figured out an if statement to resolve this; `if(!$(this).children("ul").length) {`