Adding jQueryui Buttons to dynamically added content

Posted by Hippyjim on Stack Overflow See other posts from Stack Overflow or by Hippyjim
Published on 2010-06-12T14:01:05Z Indexed on 2010/06/12 14:02 UTC
Read the original article Hit count: 306

Filed under:
|

I have a list of items that have some jQueryUI buttons associated with them. After an action (deleting an item) I want to reload the list via ajax.

Only problem is when I do so the JQueryUI buttons no longer show, just the standard markup.

I know I can use jQuery.live() for dynamically adding click handlers etc, but how do I apply a jQueryUI button() to them?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX