I have two tabs. Status and Multimedia. Users can share status or multimedia. I am trying to use just one form. How can I handle with tabs and validations? What is the logic of this? Thank you guys.
https://ibb.co/DtpPfnN "Screenshot"
I am using Laravel 5.8 and Bootstrap 4.3 (This form is just and I am trying.)
<form method="POST" action="">
@csrf
<div class="tab-content" id="nav-tabContent">
<div class="tab-pane fade show active" id="nav-status" role="tabpanel" aria-labelledby="nav-status-tab">
<div class="form-group">
<textarea class="form-control" id="status" rows="3" name="content1"></textarea>
</div>
</div>
<div class="tab-pane fade" id="nav-multimedia" role="tabpanel" aria-labelledby="nav-multimedia-tab">
<div class="form-group">
<textarea class="form-control" id="multimedia" rows="3" name="content2"></textarea>
</div>
</div>
<button class="btn btn-outline-success" type="submit">Send</button>
</div>
</form>
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire