Quick and dirty example showing one approach to pawn promotion with chessboard.js and chess.js. Live example http://www.gingergm.com/playground/promotion/ Instructions Boot up a web server and serve index.html. Dependencies chessboard.js chess.js jQuery UI Selectable jQuery UI Dialog