Message from JavaScript discussions

April 2019

— Share it here :)

— 

I tried to insert table of content in blogger with html examples and its working but the toc is fetching all head tags in my blog

— See here https://bloginoobs.blogspot.com/2019/04/simple-table-of-contents.html

— Its fetching all head tags including sidebar texts and other widget text what to do?

— Sorce here https://css-tricks.com/automatic-table-of-contents/

— Pls help

— Unfortunately I know nothing about fetching and promises so let's wait for the experts

— This code work by fetching all text between <article> and </article>

— How to change it to find tags between div element with specific id

— $("article h3").each(function() {

— Finding h3 between <article> and closing tag

— Use #yourid to look for ids