DEMO SITE v1.7.20

Search on Typing NEW Bootstrap 4.5 theme

Simple Search on Typing

HIDE CODE
<?php

	$xcrud = Xcrud::get_instance();	
	$xcrud->table("payments");
	echo $xcrud->render();	
    
?>

<script>
$( document ).ready(function() {
    console.log( "ready!" );
    $(".xcrud-search-toggle").click();
    
$(document).on("ready xcrudafterrequest", function(event, container)
{

  var typingTimer;                //timer identifier
    var doneTypingInterval = 1000;  //time in ms, 5 seconds for example
    var $input = $('.xcrud-searchdata');

    //on keyup, start the countdown
    $input.on('keyup', function () {
        clearTimeout(typingTimer);
        typingTimer = setTimeout(doneTyping, doneTypingInterval);
    });

    //on keydown, clear the countdown 
    $input.on('keydown', function () {
        clearTimeout(typingTimer);
    });

    //user is "finished typing," do something
    function doneTyping () {
        $( "a[data-search='1']" ).click();
        
    }

    $input.focus();
        var tmpStr = $input.val();
        $input.val('');
        $input.val(tmpStr);

    if (container) {
        try{
            $('.tab-pane').find("select").select2();
        }catch(e){

        }
       
    } else {
        try{
            $('.tab-pane').find("select").select2();
        }catch(e){

        }
       
    }

    $("#field_client_id").change(function(){
    
          console.log("selected");
          $("#save-button").click();
    
    });
});
    
</script>

Payments

#CustomernumberChecknumberPaymentdateAmount 
1209PH78593704.05.2004 00:00:0036069.26 View Edit Remove
2211BJ53523009.12.2003 00:00:0045480.79 View Edit Remove
3216MM34208614.12.2003 00:00:0040473.86 View Edit Remove
4219BN1787002.03.2005 00:00:003452.75 View Edit Remove
5219BR94148018.10.2003 00:00:004465.85 View Edit Remove
6227MQ41396831.10.2003 00:00:0036164.46 View Edit Remove
7227NU2132602.11.2004 00:00:0053745.34 View Edit Remove
8233II18000601.07.2004 00:00:0022997.45 View Edit Remove
9239NQ86554715.03.2004 00:00:0080375.24 View Edit Remove
10240IF24515716.11.2004 00:00:0046788.14 View Edit Remove
Search