Answer the question
In order to leave comments, you need to log in
How to count li elements and add css attribute when a certain number of li elements is reached using jquery?
Imagine that we have a ul list inside which there are several li elements
How to make a script that adds the value overflow-y: scroll to the style attribute of the ul element; but only when there are more than 11 li elements in the ul list?
Thanks in advance!
Answer the question
In order to leave comments, you need to log in
https://codepen.io/topicstarter/pen/ExVVVvJ - it seems so, but this is also done on css
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question