Function to find the element at the end of the row in a grid. Helpful if you need to dynamically manipulate a grid and insert a row or column at the correct place.
Include the script, and call findEndCol(numCols, selector, div);
Where:
numCols : number of columns on the grid
selector : common selector for items in grid
div : the div you are passing in (usually on click), to find the end of the row