I'm a bit perplexed about a section of code in my current side project. I am working on inputting data entry into my inputs and selecting options, then saving it to a variable for the image/patient utilizing the available fields (such as dropdown options and gender choices) for later use.
This system is designed to allow users to enter patient data along with corresponding images (female patient, male patient, or unknown patient), specifying the type of injury that the patient sustained, and storing the entered data in the dropdown menus accordingly.
After the user writes the necessary data, they press the "AP" button to fetch the appropriate photo based on the selected sex, which then displays the bed as occupied. This process repeats for all beds.
I also need to figure out a way to disable the data entry options shown above if an empty bed (blank image) is selected.
(Link to the jsfiddle can be found in the comments below)