Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1

Thread: Live Update

  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Thanked 0 Times in 0 Posts

    Live Update

    Hey Guys,

    I have a variable that is updated with the color that is chosen on a colorpicker.

    And I want to use this variable to change the color code that appears on a element.

    This is the code:

    	onChange: function (hsb, hex, rgb) {
    		var code = hex;
    The variable "code" is updated when the user chose another color on the colorpicker but the text doesn't change. I cant put the "$('#teste').text(code);" code in the onChange event so I want to ask you how to change the text when the variable is updated.

    Last edited by vtimbuc; 06-07-2012 at 05:10 PM.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts