5
I have a list of multiple selects and I need you to update the select option in the database. I can do this through ajax + php. My doubt is actually how to trigger the event from the option change. Could someone give me a light? They are multiple selects and they should trigger the event only from the selected select.
.linha {
display: block;
width: 900px;
}
.selects {
float: left;
display: block;
}
<div class="linha">
<div class="selects">
<label>JAN</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>FEV</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>MAR</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>ABR</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>MAI</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>JUN</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
</div>
<BR>
<BR>
<div class="linha">
<div class="selects">
<label>JAN</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>FEV</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>MAR</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>ABR</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>MAI</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
<div class="selects">
<label>JUN</label>
<select>
<option value="N">Não</option>
<option value="OK">OK</option>
<option value="">-</option>
</select>
</div>
</div>
To finish: an example in the fiddle with his code ;)
– Dherik
If you make a complete answer filet pros guy marks the other one as right. = [ discourages
– Guerra
No discouragement. I’m not saying that this is the case, but not always the one that will help people the most. Staff usually pay more attention to the number of votes than to the response marked as correct.
– Dherik