Resizable on a new added class
I have an element that when is clicked receives a new class - foo . I've made a .resizable function on that element but it does not work:
$(".foo").resizable({
aspectRatio: 1/1,
autoHide: true
If ad in html a <span id="foo">some text</span> that does not dinamically gets a "foo" class it works fine.
How should I use .resizable for newly created DOM elements?
Thanx.