The design of tabs in html remains this way
<div class="tabs-animated-wrap">
<div class="tabs">
<div id="tab1-2" class="tab active">
<div class="list login-form-box">
<form id="formulario_creacion_multa1" class="form nice-label">
<div class="content-block-title">
<h2>Datos del vehiculo</h2>
</div>
<div class="form-row">
<label for="idboleta"><span class="icon-document"></span></label>
<input type="text" id="idboleta" placeholder="Ingrese numero de boleta">
</div>
<div class="form-row">
<label for="numplaca"><span class="icon-news"></span></label>
<input type="text" id="numplaca" placeholder="Ingrese placa">
</div>
</form>
</div>
</div>
<div id="tab2-2" class="tab">
<form id="formulario_creacion_multa2" class="form nice-label">
<div class="content-block-title">
<h2>Datos del Infractor</h2>
</div>
<div class="form-row">
<label for="conducto"><span class="icon-user"></span></label>
<input type="text" id="conducto" placeholder="Nombre conductor">
</div>
<div class="form-row">
<label for="conductor_ausente"><span class="icon-user-minus"></span></label>
<input type="text" id="conductor_ausente" placeholder="Conductor ausente">
</div>
</form>
</div>
</div>
</div>
In these tabs I have two forms id="formulario_creacion_multa1"
and id="formulario_creacion_multa2"
, but in reality it should only be a form since the fields of that form will keep them in a table of the BD, at the moment I only show some fields, but in Reality are more like another tab. How could I do to have only one form that is distributed in the tabs and how to apply it in jquery.validate
Thank you very much in advance.