Quantcast
Channel: JavaScriptMVC Forum
Viewing all articles
Browse latest Browse all 3491

Init Method on each Element

$
0
0
Hi guys...

here is my jsFiddle problem: http://jsfiddle.net/QphDv/2/

After creating a new Control, i store the "p" tag into a local variable. But the problem is, if i move the mouse over one box, the secondone will also turn into red.
how can i select nodes in the init-function and use them in the event-functions for the right event.

This Fiddle is only a small example. The right on is: http://jsfiddle.net/fymNR/

Thanks


Viewing all articles
Browse latest Browse all 3491

Trending Articles