View and Controller Code
Explore how to build the user interface and controller logic to manage books in a plain JavaScript app. Learn to toggle sections, handle category selections, and dynamically display form fields based on book categories to create a responsive front-end application.
We'll cover the following...
The application’s user interface (UI) consists of a start page that allows us to navigate to data management pages, such as books.html. Our data management page contains five sections: “Manage Books,” “List and Retrieve/Books,” “Create Book,” “Update Book,” and “Delete Book.” To display only one section at a time, set the CSS property display:none for all other sections.
Summary
Regarding the category attribute and segment properties subjectArea and about in the “Retrieve/List All Books,” “Create Book,” and ...