Hi, I have this following div structure.When I implement a click event on any div with the className, I need only that particular floor name like (G,1,2).How can I get this?Please help me out? How to Hide and Show a
There’s very little setup. The first method uses document.getElementById ('textboxId').value to get the value of the box: If the element is empty, an empty string is returned. In JavaScript, you can use getElementById () fucntion to get any prefer HTML element by providing their tag id. The JavaScript script presented in this page can be used to Get Mouse coordinates inside a HTML element, usually a Div or an Image. HTML div tag - W3Schools html - How to get value of a div using javascript - Stack Overflow