I have a form and its attributes.Now I have to add CSS dynamically to each attribute html attribute like text, textarea, checkbox, dropdown.
I also have another separate block which displays possible CSS attributes for adding CSS to form like font,font-style,width,padding for each html attribute. What is the best way of adding CSS to form via jquery. Mere adding normal CSS jquery like,
$( this ).css( "color", "red" );
to the form creates a lot of work. Is there any plugin in jquery that supports mainly for CSS related tasks. Or should I go with .css() jquery attribute itself. I need to add CSS to the form via inline. I will then save it.