jquery-ui resizable lazy call on event
Hi all,
i have an element that is loaded and created on a user event.
My problem is,that if i call directly into the <script> tag, it works
- <script>
- $('th').resizable();
- </script>
if i call :
- <script>
- function callOnEvent() {
- $('th').resizable();
- }
- </script>
it just doesn't want to work.
The chrome console says "
undefined is not a function"
How can i fix this ?!
***** the same error i had with jstree trying to reload it, and in other places that right now i don't remember.
Thanks
AiU