1
I am developing a site that has a search filter for neighborhoods, where the person selects in checkbox the neighborhoods. Then I need to take the values that are checked and play in a text (ex: Selected neighborhoods: Brooklin, Campo Belo)
Checkboxes look like this (it’s a list of dozens of neighborhoods):
<div class="span3">
<input type="checkbox" value="43" name="bairro[]" id="bairro0"> Aclimação
</div>
<div class="span3">
<input type="checkbox" value="2" name="bairro[]" id="bairro1"> Alto da Boa Vista
</div>
<div class="span3">
<input type="checkbox" value="48" name="bairro[]" id="bairro2"> Alto da Lapa
</div>
If it is possible to get the name of the neighborhood, in case it is not possible I can only take the value of the checkbox and make a query using mysql and php to bring the name.
When the person applies the filter and gives OK, the page already loads with the selected fields.
Thank you!
Almost that, the only modification, as I do for him right at the beginning already bring only who is selected? for example high of the Apa be already checked and it bring the High value of the Apa
– Leandro Teraoka
PERFECT!!! Thank you
– Leandro Teraoka