How do I use raw javascript in jquery and add unique functions to jquery selectors?

Posted by Erik on Stack Overflow See other posts from Stack Overflow or by Erik
Published on 2009-07-27T17:38:17Z Indexed on 2010/04/04 15:53 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

I am looking to do what the title says. As I am new to client side programming with java script all to together I do not know the "right" and "proper" way of achieveing what I need done.

I wish to use a simple javascript function

var x;
var items = {};

for (x = 0, x < 7; x++) {

    items[x] = new num;

}

$("li").addclass("items" + num);

Is this right? Am I on the right track even?

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about JavaScript