What is the best way to change the css of an element using jquery? I have a list of elements displayed one per line and I want to display them inline, dynamically.Should I use
.css({"properties"})
And write a whole bunch of code ? Any other suggestions ? Thanks.
If the styles are going to be static then what you can do is externalize the styles into a stylesheet and use jQuery to add CSS classes to your element.