0
I don’t know if I made myself clear in the title, but whoever’s old-fashioned might remember that Dreamweaver had a jump function that was used a lot in combobox. How would I make this option with Jquery within the following reasoning:
<label for="filtro">Registros:</label>
<select name="Filtrar" id="filtro" class="form-control">
<option value="10">10</option>
<option value="50">50</option>
<option value="100">100</option>
</select>
When selecting the desired amount of record, I would take it as a post directly and play within that method automatically:
$filtro = $_POST["Filtrar"];
echo $metodos->listarUsuarios($filtro);
List method()
public function listarUsuarios($filtro)
{
$limite = ($filtro == '')?'10':$filtro;
$sql = mysqli_query($this->conexao,"SELECT * FROM tabela LIMIT ".$limite.";");
.....
}
Is this possible with Jquery? It can be with Javascript as well.
Putz. You’re right Leandrade. I had completely forgotten this post! Thanks!
– user24136