bootstrap-fullscreen-select fire onchange event?

62
May 06, 2021, at 04:11 AM

I am using select option for full screen http://craftpip.github.io/bootstrap-fullscreen-select/ It can't fire onchange event, any idea?

<select name="select_year" id="select_year" class="form-control mobileSelect">
   <option value='abc'> abc </option>
</select>
$(document).ready(function()
{
    $('#select_year').on('change', function() {
         alert( "asdaS" );
    })
});

Thanks for @Justinas. I have success fire onchange event. Here is what i did :

Add the following codes :

onClose: function(){
    alert('onClose: '+$(this).val());
},
onOpen: function(){
    alert('onOpen: '+this.val());
}

inside :

$('.mobileSelect').mobileSelect({
    animation: 'scale',
    animationSpeed: 400,
});

become :

$('.mobileSelect').mobileSelect({
    animation: 'scale',
    animationSpeed: 400,
    onClose: function(){
        alert('onClose: '+$(this).val());
    },
    onOpen: function(){
        alert('onOpen: '+this.val());
    }
});
READ ALSO
Design pattern for separation of concerns

Design pattern for separation of concerns

I've am looking for a design pattern to provide separation of concerns and keep the my operations segregated

69
Open excel file in Python: XLRDError: Excel xlsx file; not supported

Open excel file in Python: XLRDError: Excel xlsx file; not supported

I want to open an Excel file in Python, using:

317
Restrictions on non-SDK interfaces with androidx.appcompat library

Restrictions on non-SDK interfaces with androidx.appcompat library

Due to Restrictions on non-SDK interfaces on app targeting Android 11, I have used vertex tool provided by Android Developers site to find list of non-SDK API in my app

60