Skip to content
Advertisement

Tag: class

Giving class to an object

I have a few variables with colors that I want to change later. I want certain class to have background color from that variable. Every object with that class should be that color (nav, footer etc.). I have something like this, but it doesn’t work. Can you help? Answer in fact I didn’t see any problem, but you can also

How to rewrite in pure JavaScript code from JQuery code?

I have some trouble using JavaScript. This is my JQuery code. I checked this question convert jquery each function to pure javascript, but cannot solve my problem. I want someone can help me. Thank you in advance. Update This is the code I tried. Answer @GrafiCode said it’s good for me to answer my own question. This is my answer.

How I make different objects from one class function?

I’m making a note-taker app. The problem is….when I click the ‘view detail’ button which I created, no matter what button I click among these, it shows me the modal of last content that I made. I believe it shows me the content from the last object I created from the class function. And the class function keeps refreshing the

Advertisement