david19
2 months ago
246
10
Laravel

Radio Button uncheck (best way?)

Posted 2 months ago by david19

Hello Team, I use Laravel 6 with Bootstrap: I saw a new problem. I have Categories with Parent Categories. If i check a radio button, then i can not uncheck in my form.

Yes, i can make a standart category_base, and make a if statement and set parent_id to "NULL". But the problem is, in the future i loaded allways this category_base in my "foreach" blade files. I think that is not the best solution.

How you deal with this? Do you make this with javascript, all what is the best way? Many thanks.

Please sign in or create an account to participate in this conversation.