how to get last child element in javascript
document.getElementById("myList").lastChild
how to get last child element in javascript
document.getElementById("myList").lastChild
javascript last child
let text = document.getElementById("mySelect").lastChild.text; // text of last child
// lastChild returns the list child node: An element node, a text node, or a comment node
//The lastElementChild property returns the last child element (ignores text and comment nodes).
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us