Is there a way to shorten a piece of code like this.
I was thinking if it would be possible to combine these two lines somehow:
- $("#page2").find("[data-blue] div").eq(2).addClass("ui-disabled");
- $("#page2").find("[data-red] div").eq(2).addClass("ui-disabled");
Thanks in advance.