Support » Plugins » Hacks » Widgets with jQuery

  • Resolved mattyrob


    I have a widget that uses a jQuery colorpicker.

    If the Widget is added to the sidebar and the page is then reloaded the colorpicker script links correctly to it’s bound fields. However if the page is not reloaded and the Widget is added from the list of currently inactive widgets the color picker code fails to ‘attach’. I’ve tried using the .live() method without success with the code below.

    So, is it possible to ensure the jQuery colorpicker code attaches to fields that are created on a page after the DOM ‘ready’? Is so, how?

    [Code moderated as per the Forum Rules. Please use the pastebin]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Widgets with jQuery’ is closed to new replies.