I'm creating a quiz app with Laravel. I have 6 questions, 24 answers, and 6 pages altogether. I have 1 question per page and 4 answers (with radio buttons) per page. So, 24 radio buttons in total.
I want to be able to communicate with all 24 radio buttons through JavaScript. My issue is, because I used the query builder paginate method to paginate my data, I can only see the first 4 radio buttons in my script:
{!! Form::open() !!}
{{Form::label('option', 'Option One')}}
{{Form::radio('radio', '1', array('required' => 'required'))}}
{{Form::label('option', 'Option Two')}}
{{Form::radio('radio', '2')}}
{{Form::label('option', 'Option Three')}}
{{Form::radio('radio', '3')}}
{{Form::label('option', 'Option Four')}}
{{Form::radio('radio', '4')}}
{!! Form::close() !!}
Is there any way I can access the other 20 radio buttons that are displayed to the end-user but aren't written in my script?
I hope this makes sense. Thanks.