I am hving two modals on a single page for signup and login. When i am doing validation of laravel to show error in modal itself with this code.
<script type="text/javascript">
@if (count($errors) > 0)
$('#signup').modal('show');
@endif
</script>
but the issue is the validation is for both login and signup. so if this modal appears for the both login and signup validation. Can anyone please help me how to appear the of the particular modal error. How to define the error for the signup or for login validation error.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire