=== Name Clear Board === Description Use the clear method to remove all the pieces from the board. === HTML
=== JS var board = ChessBoard('board', 'start'); $('#startPositionBtn').on('click', board.start); $('#clearBoardBtn').on('click', board.clear); $('#clearBoardInstantBtn').on('click', function() { board.clear(false); });