Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6758185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:45:01+00:00 2026-05-26T13:45:01+00:00

I am using farbtastic color picker and working fine but now I need to

  • 0

I am using farbtastic color picker and working fine but now I need to change the text color using this plugin.

This is what I have now:

http://jsfiddle.net/g2hZy/15/

This is my code:

With this the text color is not changing and not showing me the hex value too.

<script type="text/javascript">
     $(document).ready(function () {
         $('#colorpicker').farbtastic(function (color) {
             $("#colorpicker").style("color", color);
         });

     });
</script>

Text input control:

<input type="text" id="color" name="color" value="#123456" />

Color picker placeholder:

<div id="colorpicker"></div>

This is my text input:

<input id="Text1" type="text" />

Now if I write anything and change the color from color picker I need to change the text forecolor from “Text1” input.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:45:02+00:00Added an answer on May 26, 2026 at 1:45 pm

    This seems to work:

    $(document).ready(function() {
        $('#colorpicker').farbtastic(function(color) {
            // sets the color for both the 'color' and 'Text1' inputs
            $("#color, #Text1").css("color", color);
            // updates the 'color' input to the currently-selected color
            $("#color").val(color);
        });
    
    });
    

    JS Fiddle demo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this fantastic little plugin working but I need to require that at
How would I go about using Stephen Celis' fantastic SCListener singleton? ( http://stephencelis.com/2009/03/02/now-i-just-need-an-audience.html )
I have been looking through this fantastic article: http://blogs.zynaptiq.com/bernsee/pitch-shifting-using-the-ft/ While being fantastic, it is
I have successfully implemented a working UIScrollView layer on top of Cocos2d using this
f.input :some_model_values, :as => :select Using Formtastic, I need to set a text for
I am using the rather fantastic jQuery multiple select plugin, ASM select This plugin
This is a fantastic resource and I have been using it extensively during my
I'm using the source code found on this site here: http://webtint.net/tutorials/5-star-rating-system-in-php-mysql-and-jquery/comment-page-1/#comment-2562 A fantastic resource,
I am using a fantastic jQuery validation plugin . It is working well with
I have code like this in a Rails 3 app I'm working on <%

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.