Click here to Skip to main content
15,889,992 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have tried the below code :



But this code snippet show all categories. I need it to show the enrolled categories for a user

Please can someone help

What I have tried:

<div id="frontpage-category-names"><h2>Course categories</h2><div class="course_category_tree clearfix frontpage-category-names"><div class="collapsible-actions"><a class="collapseexpand aabtn" href="#">Expand all</a></div><div class="content"><div class="subcategories"><div class="category loaded" data-categoryid="1" data-depth="1" data-showcourses="5" data-type="0"><div class="info"><h3 class="categoryname aabtn"><a href="e.iqcoll.co.za/course/… class="content"></div></div></div></div></div></div>
Posted
Comments
Richard MacCutchan 10-Feb-21 5:07am    
You may like to reformat that into separate lines rather than one long string.
20212a 10-Feb-21 9:48am    
Wherever you are getting your list, filter it.
ShaunGov 10-Feb-21 10:00am    
Could you provide me a sample snippet? I have been trying and cannot get it right. Maybe a sample code would help

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900