LIVE Button()
LIVE Button()
Hi,
Situation: buttons initialized on $().ready, but when I add some html with .ajax function (.load is not good for me ... ), i need to re intitialize the buttons, because they are not formatted by jquery ui.
Is there a good solution to help this, because my workaround is not a good one i think.
My workqaround: put the button widget initializes in a function and call it when i put a button into the html.
But this a waste:
1. I need to call the function when i manipulate HTML - I just want to think them only once :)
2. All buttons are initialized AGAIN :(
There is a solution to problem 1: when body changes I reinitialize -
HUGE waste of resources.
So is there a nice soution for my problem ?
THX