jQuery: Writing jquery in an object oriented way

Posted by anoopkattodi on Stack Overflow See other posts from Stack Overflow or by anoopkattodi
Published on 2010-06-05T12:41:12Z Indexed on 2010/06/05 12:52 UTC
Read the original article Hit count: 127

Filed under:
|

Hi all,

I am trying to write all my query code in an object oriented way. But I don't know how to implement this for each click function and hover function etc. I also wanted to know:

  1. What are the advantages of writing query in object oriented way?
  2. For query what is better the object oriented way or in the ordinary way?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery