0

Using external js file to add the list for Module D and Module E

How can I add Module D and Module E in below HTML file by editing only external js file: <div id="moduleDrop" class="moduleSetup"> <ul> <li>Module A</li> <li>Module B</li> <li>Module C</li> </ul>

22nd Feb 2020, 3:28 PM
SWL
2 RĂ©ponses
+ 1
You can append in list using jQuery like $("ul").append('<li>Module D</li>');
22nd Feb 2020, 3:52 PM
AÍąJ
AÍąJ - avatar