It's pretty easy to constrain a jQuery draggable to an axis like this:
$("#object").draggable({ axis: "x" });
But how can I constrain it to both x and y? IOW, I want to allow both vertical and horizontal movement but nothing else (imagine rooks on a chess board).