Shorten a piece of code.

Shorten a piece of code.

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:
  1. $("#page2").find("[data-blue] div").eq(2).addClass("ui-disabled");
  2. $("#page2").find("[data-red] div").eq(2).addClass("ui-disabled");

Thanks in advance.