[Vuejs]-Input / Change / Keyup / focus event not fired

0👍

$(ins[i]).on('show input keyup focus change', this.getInVals());

remove getInVals call. try change getInVals() to getInVals

$(ins[i]).on('show input keyup focus change', this.getInVals);

0👍

I don’t get what you’re trying to do or to say, but I was doing something similar, you can have it as an example if it helps.

$('.look').on('keyup change', function () {
    var value = $(this).val().toLowerCase();
    var what_place = $(this).parents('.collapse').find('.col-sm-0');
    $(what_place).each(function(){
        $(this).css({"display": "block"});
        if(value == ''){
            $(this).css({"display": "block"});
        }
        else if($(this).find('h5').text().toLowerCase().indexOf(value) < 0){
            $(this).css({"display": "none"});
        }
    });
});
👤Duma

Leave a comment