Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

137
Views
How to add ul element's style with jquery?

I want to style an ul element created with js

<ul class="form">
...
<ul>
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

$("ul.form").css({
  display: "none",
  color: "red", 
  width, height & other style elements 
  ...
});
about 4 years ago · Juan Pablo Isaza Report

0

Using jQuery you should be able to use one of the foolowing to get the result you need.

$("ul.form").css("background-color", "#000000");
$("ul.form").css({backgroundColor: "#000000"});
$("ul.form").attr("style", "background-color: #000000;");
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!