Skip to content

Tag: javascript

how do I make all kinds of grids invisible in echart?

There are some horizontal lines in the background and I need remove it. I go to the grid section in the document, but I did not find anything related to this. Answer It might not be intuitive, but grid is not about the ‘grid’ in the background, it’s rather for positionning your chart(s) in a…

Get cell Value of Table html

I have this code (opt1) to get the text of the cell, which is clicked, but this alerts all of the objects in the table as its in a loop. But when I place it outside the loop I just get a random text from the table and not the one which is clicked (opt2). I need the textContent of

React Hooks useState() with an Array of Object

while I am creating new “Todo” and modifying the fields are no problem my issue is receiving back the child data when I click the “show all objects” button. Here is a code example to illustrate my issue: if I click twice on the “add a Todo” button and change one of the fiel…

How to close an element by clicking outside of it?

I’m currently trying to close an element when its style is different than “display = none”. I’m having an error in the console telling me that lists. some aren’t a function so I may not have understood well the “some” method. More Infos on what I want : Given that I h…