How to give my Select multiple=multiple dropdown list a checkbox to click on? And how to catch it?

Hai, So im making a Select list where a user can select multiple Products in a list to add to a package of food. But now i have to use Ctrl + clicks to select multiple products. I wish to do it with simple checkboxes. Besides that i have troubles retrieving the selected items in this list. If you could take a look at my code how to fix it, it would be appreciated. Because right now the List count = 0 (as shown in the image)
9 Replies
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Tostiapparaat
TostiapparaatOP3y ago
This my 2 create methods. And ill look into the chosen plugin yes, looks interesting. Wouldnt know what more context to give, thought this is all the code related to the selectList. Although im a beginner.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Tostiapparaat
TostiapparaatOP3y ago
Havent tried it yet. Lady demanded attention. But ill Give ur approach a shot asap and ill let u know. sry! Thankyou tho for helping!
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Tostiapparaat
TostiapparaatOP3y ago
Where does Asp-for"genresIds"refer to in ur model? Ur list<int> GenresIds? Änd, If that's the case, shouldnt my selectlist be empty then when i launch the website? :0 Because the selectlist is filled with 6 products that are in the DB. Or am I missing something hmm.
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Tostiapparaat
TostiapparaatOP3y ago
Can i see all related code to the <Select> tag? Like the whole create method, asp-for"list in model"
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server