I have an element
in CSS
. I'm using:
ul.bjqs-controls.v-centered {to add style to it}
But in JS
I need to define it and I don't have and Id
, the only way to define is ul.bjqs-controls.v-centered
.
I'm new in JS
.
Should I use getElementById
? Or what?
EDIT:
I'm trying to use jquery, but it's first time I use it, I'm trying to change element's (ul.bjqs-controls.v-centered) width to window width on page resize, but it doesn't seem to work :/
$(window).resize(function() {
$("ul.bjqs-controls.v-centered").width()=$(window).width();
});