I am trying to create regions at my javascript code written in HTML <script>...</script>
tag to categorize it by collapsing. I tried following code that I found here but nothing happened. Is there any method to do it in HTML <script>
tag?
Here is my code:
<script>
//#region DataTable Functions
function initRoomTable(){
$('#room-table').DataTable({
...
})
}
function initParticipantTable(){
$('#participant-table').DataTable({
...
})
}
//#endregion DataTable Functions
//#region Init Page
$(document).ready(function () {
initRoomTable();
initParticipantTable();
})
//#endregion Init Page
</script>