Trying to create a question component where users can choose the correct answer out of 4 options.
I planned to use 4 input styles with a checkmark "radio" DIV on the right. When a user clicks on an option, it should display a checkmark while others show a red "x".
<div class="answer">
<input type="text" autocomplete="off" name="answer" id="answer-1" placeholder="Answer 1" class="form-control input" value="" />
<button type="radio" class="btn btn-success answer-type" style="" value="1">
<i class="glyphicon glyphicon-ok"></i>
<div class="left-check"></div>
</button>
</div>
Facing an issue where all boxes are positioned at the top-right corner of the first input field.
Any suggestions or solutions would be greatly appreciated. Thank you!