Remove parent element at certain width | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Remove parent element at certain width

Is there a way to remove a parent element at certain width using JavaScript? Or do I have to use jQuery?

20th Apr 2020, 11:32 PM
David Paredes
David Paredes - avatar
2 Answers
0
I have found a way(only javascript) : https://code.sololearn.com/WmQ9c17FUpYh There must be a better way though...
21st Apr 2020, 1:28 AM
David Paredes
David Paredes - avatar
0
Could you provide the specific code?
21st Apr 2020, 1:31 AM
Neo Hao Jun
Neo Hao Jun - avatar