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 7677985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:32:33+00:00 2026-05-31T17:32:33+00:00

I have a jQuery plugin I am trying to add a callback function for.

  • 0

I have a jQuery plugin I am trying to add a callback function for.
(I will not post all the code, but have provided a ready made JSFiddle instead: http://jsfiddle.net/39Uqr/)

View the JSFiddle – (after colour is selected, I want to fire a callback)

The plugin is quite simple, but I am having trouble adding a callback function for after a user has selected a colour. (So once a user has clicked on the box, the colorpicker shows, then once they select a colour, I would like to run a callback function [for ajax update], after the input field has been updated (it does it already)).

So basically, I need a callback function for when after a colour has been selected and updated the input.

I read the following posts on SO, and attempted this myself (for the last 2 hours!!), but just couldn’t get it to work.

View the JSFiddle

a simple explanation would be very appreciated (optional, just need it working tho).

jQuery Plugin: Adding Callback functionality
and also tried
jQuery plugin callback

The plugin is called ‘Reallysimplecolorpicker‘

  • 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-31T17:32:34+00:00Added an answer on May 31, 2026 at 5:32 pm

    I made up a demo for you that I think is what you are looking for:

    http://jsfiddle.net/ab7cU/4/

    I added a comment // New line! for every new line that I added to the code.

    this inside the callback refers to the element that you apply colorPicker to. Later that element will be removed from the DOM.

    I added an example that alert the rel attribute 😉

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

Sidebar

Related Questions

I have been trying all afternoon to get the jQuery Sifr Plugin ( http://jquery.thewikies.com/sifr/
All, I am trying to use JQuery's URL Validator plugin. http://docs.jquery.com/Plugins/Validation/Methods/url I have a
I'm am trying to create a jQuery plugin that will add new namespace functions
I am trying to write a jQuery plugin that will have similar functionality to
I am trying to upload multiple images and I have a jquery plugin set
I have been trying to make this to be a little jQuery plugin that
I'm using the jQuery plugin for TinyMCE and have had a hard time trying
I have a jQuery plugin that moves an element on the screen, but has
I have the jQuery numberformatter-plugin installed, but don´t get it to work correctly. I
I'm using the jQuery validation plugin trying to add rules based on data- attributes.

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.