jQWidgets Forums

jQuery UI Widgets Forums General Discussions jqxColorPicker question

This topic contains 1 reply, has 2 voices, and was last updated by  Tony C 12 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • jqxColorPicker question #17981

    DavidSimmons
    Participant

    Can you tell how to get the text example “#FFFFFF” of the Color object on a jqxColorPicker colorchange event? I tried
    alert(color.text) but it was not correct….

    $(‘#jqxColorPicker’).bind(‘colorchange’, function (event)
    {
    var color = event.args;
    });

    jqxColorPicker question #17983

    Tony C
    Participant

    from the demo source, it appears that it should be :-

    $(“#jqxColorPicker”).on(‘colorchange’, function (event) {
    var color = ‘#’ + event.args.color.hex ;
    });

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.