C
Czterysta Czwarty
Hi!
Can you explain me how to build code with jQuery and objects?
Now I have:
in $(document).ready()
- functions for events: var chooseElement = function(){...}
- binding this function to events : $
('#element').click(chooseElement);
and jQuery plugins used in ready: jQuery.fn.hideEmptyCategories =
function(){...}
I need some tips how to write it in right way. Move functions to
object and binding it to event and plugins?
Can you help me?
Can you explain me how to build code with jQuery and objects?
Now I have:
in $(document).ready()
- functions for events: var chooseElement = function(){...}
- binding this function to events : $
('#element').click(chooseElement);
and jQuery plugins used in ready: jQuery.fn.hideEmptyCategories =
function(){...}
I need some tips how to write it in right way. Move functions to
object and binding it to event and plugins?
Can you help me?