繁体   English   中英

如何在不按Enter的情况下进行搜索

[英]how to search without press enter

如标题所示,我有一个文本框和一个表格。 每当我在文本框中输入任何字符时,我都希望更新表

我的文字方块:

<form action="registration/popup_find" method="get">
        <div class="form-group">
        <label class="sr-only" for="value">Search</label>
        <input type="text" class="form-control" name="value" id="value" placeholder="Search..." value="<?php echo $this->input->get('value'); ?>"> 
    </div></form>

我的桌子:

 <table class="table table-hover">
    <tr>
        <th>No Registrasi</th>
        <th>Tgl Registrasi</th>
        <th>Nama Pasien</th>
        <th>No Hospital</th>
        <th>Actions</th>
    </tr>
    <?php
    $index = 0;
    foreach ($registration as $value) :
        echo Modules::run("registration/registration_table", $value, $index);
        $index++;
    endforeach;
    ?>
</table>

怎么做??

您可以将数据表用作jQuery的表插件。

它非常易于使用和实施。

如果您使用的是bootsrap,则可以使用

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM