I'm struggling to grasp this concept. In my form, there are roughly 20 input values that display when utilizing col-md
or col-lg
, but for smaller screens (col-xs
and col-sm
), I want to use a dropdown instead.
The issue arises when I attempt to hide the fields with hidden-sm
or hidden-xs
; they remain in the form and still get processed upon submission, resulting in the value being passed twice - once as a radio button and once as a dropdown selection.
I suspect many others are facing similar challenges. What is the appropriate method to completely disable input fields in Bootstrap (not just hide them) for smaller screen sizes? The inputs currently look like this:
<input type="radio" name="category_id" value="1" id="cat1">
<input type="radio" name="category_id" value="2" id="cat2">
<input type="radio" name="category_id" value="3" id="cat3">
...