In an onclick event, I would like to hide the "closed" `li` and show the "open" and vice versa.
can I do this in Javascript?
I have the following html:
link
Liink
Not sure what you are asking here or what your html structure is like. Can you post some html pseudocode?
以上就是How to hide div onclick in unordered List ..的详细内容,更多请关注web前端其它相关文章!