Piece of Code
$(document).ready(function() {
$("#ulSub").append('<li id="abc hover" class="DJ hover"><h5>Cancer information</h5><ul id="ulSub1 fadeIn/fadeOut">');
var ciid = $("#ulSub li").find("ul");
$(ciid).append('<li><h5>What is cancer</h5></li></ul></li>');
});
HTML Element
<div class="dmenu">
<ul id="ulSub">
</ul>
</div>