I am new to javascript so please be gentle. I am implementing a small 4x4 sudoku (16 cells total). I figured out how to make the tables and how to put buttons inside the cells to allow the user to pick a number. I am stuck on one thing however. How would I clear all the buttons within a cell once a user picks one and just have that number appear in plain text? here's what it looks like so far,


For example, after I click on button 1, I want to check if it's valid then clear all the buttons and put "1" into that cell in plain text. Thanks guys.