Search code examples
javascripthtmljquerystyles

How to add ul element's style with jquery?


I want to style an ul element created with js

<ul class="form">
...
<ul>

Solution

  • $("ul.form").css({
      display: "none",
      color: "red", 
      width, height & other style elements 
      ...
    });