I have a variable which is the HTML of a UL, I was wondering if I can remove a few things from the variable but not the actual HTML of the UL..??
EG
<ol class='sortable'>
<li class="menu-item">
<div>Allure</div>
<ol>
<li class="menu-item" style="display: list-item;">
<div><a href="/_webapp_4002836/Allure-Gallery">Energy-Drink</a> </div>
</li>
</ol>
</li>
<li class="menu-item disabled">
<div>Bitten SJP</div>
<ol>
<li class="menu-item" style="display: list-item;">
<div><a href="#">Bitten</a></div>
</li>
</ol>
</li>
</ol>
My JQuery does this
var sortableList = $(".sortable").html();
is there any way to do this
var sortableList = $(".sortable").html("MINUS ALL CLASSES ".DISABLED");
Thanks for any answers
If you’re trying to select all of a menu-item that is directly from
.sortablethat isn’t disabled: