how can I write a register jquery function to do the registration, and the login functions in two différent functions.

how can I write a register jquery function to do the registration, and the login functions in two différent functions.

I have a laravel vue containing 3 forms, and I must do register or login in the page to pass to the next page.

can you help me t write the onsumbit juery code function ?

here is the view's code:


@extends('layouts.layout')


@section('chercher')


@stop
@section('apropos')

<section>

<div class="fea_block container-fluid" id="help">
<div class="fixed_w promka">

<div class="row">
<center>
<h2> <font color="#00BFFF"> 4 étapes (rapides) avant de valider votre RDV </font> </h2>
<ul class="step_nav">
<li class="step_nav_item">
<span class="step_number">1</span>
<span class="step_title">consultation</span>
</li>
<li class="step_nav_item--current">
<span class="step_number">2</span>
<span class="step_title">S'identifier</span>
</li>
<li class="step_nav_item">
<span class="step_number">3</span>
<span class="step_title">Identification SMS</span>
</li>
<li class="step_nav_item">
<span class="step_number">4</span>
<span class="step_title">Confirmation</span>
</li>
</ul>
</center>
</div>
</div>
<div class="anim_bg"></div>
</div>


</section>

@stop



<script>
$(document).ready(function() {
$("#use").change(function(){
var value = $('.t:checked').val();
if (value == 0) {
$("#insc").show();
$("#login").hide();
}
else {
$("#login").show();
$("#insc").hide();
}
})

});
</script>

<script>
$(document).ready(function() {
$("#register").submit(function(){

})

});
</script>

@stop