Message from JavaScript discussions

June 2019

— Hi

— 

Did you get the desired output? If you didn't get it than I will suggest you rather save it as a file with ".html" extension.. Put the code between script tag.. And open the file on the browser..
Also.. IMO, using JavaScript this isn't a good practice..

— Do anybody else what coding train YT ?

— 4000 and it's being calculated using this method

var getOffsetTop = function (elem) { // Set our distance placeholder var distance = 0; // Loop up the DOM if (elem.offsetParent) { do { distance += elem.offsetTop; elem = elem.offsetParent; } while (elem); } // Return our distance return distance < 0 ? 0 : distance; }; // Example var elem = document.querySelector('#some-element'); var offset = getOffsetTop(elem);

Message permanent page

— 🤤👎

— Btw, i see no "element class" there.. use tripple backticks

to insert 
some
code

— Https://developer.mozilla.org/en-US/docs/Web/API/Element/getBoundingClientRect

— Might just work..

— Http://youmightnotneedjquery.com/#offset

— TRGWII

— SitiSchu

— Hi, i just want to select multiple options using datalist. But unable to select multiple. Plz guide