Adding class to an element using jQuery + simultaneously sending custom values of css class parameters -
I do not know if this is possible but I will try to require it. I want to do something like this .... CSS class with undefined variable X, Y, Z: . R {border-radius: xpx; -webkit-boundary-radius: Yipx; -max-boundary-radius: ZPX;} Then into the body: Script: $ ("#tigest"). AddClass ("r (10,10,10)") As you see, I have a CSS class but there is no number just the variable And I want to send this class all the variables using jquery and via jquery. Is there any way to do this? Interesting ideas, but unfortunately, it is not possible to apply directly: CSS is instantly "compiled" That is why this CSS is just invalid and it will not be recognized. Instead, what you can do is code like this: $ ("# test"). CSS ({"border-radius": "10px", "-webkit-border-radius": "10px", "-max-border-radius": "10px"}); To set CSS properties with jQuery on the fly.