Answer the question
In order to leave comments, you need to log in
How to assign a property to elements?
Hello. I'm just learning JS so far and I need to assign a property to css elements through an each loop.
list = $('.card')
$.each(list, function(index, value){
value.css('display', 'none')
})
Answer the question
In order to leave comments, you need to log in
You learn jquery, learn js first
$('.card').each(function(){
$(this).css('display', 'none')
})
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question