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?
- The topic ‘Widgets with jQuery’ is closed to new replies.