Menu
A developer may be working on a survey website and want to “check” some checkboxes according to the user’s previous choices. In this case, the developer could use jQuery to check the checkboxes by setting the “checked” attribute to “true” when the page loads, based on the user’s previous choices stored in a database.