⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠

GroceryCRUD and jQuery ColorPicker

jquery plugins javascript forms

  • Please log in to reply
No replies to this topic

#1 yadul



  • Members
  • Pip
  • 1 posts

Posted 09 March 2015 - 08:49 PM

Hello everybody, I'm trying to put a jQuery ColorPicker plugin into a add/edit form inside GroceryCRUD. No errors reported in console but the color selection dialog did not appear. Only some controls below the page footer. Nothing else.


My code:


The callback funtion to fill the color code...


function color_callback($value = '', $primary_key = null) {
        $result = '<input id="field-color" style="width:100px;" name="color" value="' . (($value) ? $value : '') . '" maxlength="7" type="text">';

        return $result;

The script...


$(function () {
        parts: 'draggable',
        showCloseButton: false,
        modal: true,
        showCancelButton: false,
        closeOnEscape: false



Also tagged with one or more of these keywords: jquery, plugins, javascript, forms

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users