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

59
Views
ColorPick Javascript Issue

In colorpick.js I can able to change the elements color but I am not able to change the border colors present in css. You can see here

This is the Colorpick Javascript code below:

 /* INITIALIZATION COLOURPICKER FOR ELEMENTS
    *********************************************/
    var newColorColorPickElements = $('.ftco-navbar-light, .btn.btn-primary, .bg-light, .sidebar');
    
    $('#pickerelementscolour').colpick({
        layout: 'hex',
        submit: 1,
        colorScheme: 'dark',
        onChange: function (hsb, hex, rgb, el, bySetColor) {
            $(el).css('border-color', '#' + hex);
            setNewColorUI(hex);
            if (!bySetColor) $(el).val(hex);
        }
    }).keyup(function () {
        setNewColorUI(this.value);
        $(this).colpickSetColor(this.value);
    });
    
    function setNewColorUI(newColor) {
        newColorColorPickElements.css('background', '#' + newColor);
        if (!(/Trident\/7\./).test(navigator.userAgent)) {
            if (localStorage.getItem('elementsColour') != newColor) localStorage.setItem("elementsColour", newColor);
        }
    }

please help me resolving this, thank you

about 4 years ago · Juan Pablo Isaza
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!