vendredi 4 décembre 2015

Error while assigning id to accordion in laravel

I have added a code of accordion in my project. Till yesterday it was working fine today accordion is not working because there is space between id as shown in screen-capture from my project. The red boxes show that there is 3 spaces in id of accordion.

My code to show the accordion is:

<div class="row">
    <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
        @foreach($data as $from)
            <div class="panel panel-default">
                <div class="panel-heading" role="tab" id="heading{{$from->id}}">
                    <h4 class="panel-title">
                        <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapse{{$from->id}}" aria-expanded="true" aria-controls="collapse{{$from->id}}">
                            {{$from->from}}
                        </a>
                    </h4>
                </div>
                <div id="collapse{{$from->id}}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading{{$from->id}}">
                    <div class="panel-body">
                        {{$from->body}}
                    </div>
                </div>
            </div>
        @endforeach
        </div>
    </div>

Is there any changes i can make to get rid of this error.



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1IvoLxp
via IFTTT

Aucun commentaire:

Enregistrer un commentaire