I have a form, which it ask for the field1 a serial number. Then in the 2nd field, it will ask the model. But I can find the model with the serial number. Its the 3 & 4th numbers of the serial. So instead of asking the model number, I wanted to put directly the model without the user intervention.
I want the field2 directly changed when the field1 has been updated, not after the post of the form.
So first, is it possible only with php ? My knowledge in jQuery, Ajax and JS are very limited.
Here's how I'm doing now :
<div class="col-xs-6">
<div class="form-group">
<label for="no_serie_produit" class="label col-xs-3">N° Série Produit</label>
<div class="col-xs-10">
<input type="text" name="no_serie_produit" id="no_serie_produit" placeholder="N° Série de ... (Obligatoire) ">
</div>
</div>
<div class="form-group">
<label for="model_produit" class="label col-xs-3">Modele Produit</label>
<div class="col-xs-10">
<input type="text" name="model_produit" id="model_produit" placeholder="Modèle ... (Obligatoire)">
</div>
</div>
</div>
2nd : If I really need to use something like JS or jQuery, can you suggest me the most easy one to learn.
EDIT
Example :
If I put in Serial n° : 14020001, I want in the field2 : TMSA4-NET LV