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

78
Views
Change the style uniquely if files are jpg

hello in my html page I have jpg and png files all this files have a class : ".background" in this class I defined size and other attributes. I want change the attributes uniquely on jpeg files. In JS can I find all jpg files of my page and change the style of this class ? Thank you for your help

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

From my point of view you could do the following:

  • First select all the that have a src that contains ".jpg" at the end of the name (with regex or similar) and save them in a list or in a variable
  • Then apply the necessary changes with myVariable.style.X

However without further details it's difficult to help you more. It would be much easier to help you if you could provide us more details on the code you have, could you edit your post please?

Have a nice day!

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!