@Rioba-Ian
Posted
Hi Cindy, you might want to check that the user has clicked on the buttons before hitting submit. One of the ways you can do that is by setting data attributes to each of the li items. Once one of them is clicked you store the data in an array. If the array is empty you always set the submit to disabled otherwise you allow for submit. You can think of the js as something like this:
const dataItems = [] // array to store data from li items
if (!dataItems) return
// otherwise submit
// some code here...
Marked as helpful
@cindykandie
Posted
@Rioba-Ian Oh yeah, thank you! I will add that and a test too for the same. Highly appreciate your feedback.