Jquery execute onchange event on onload

后端 未结 6 1329
悲哀的现实
悲哀的现实 2020-12-01 16:02

I have a function that on change event run the post actions.

$(\"select#marca\").change(function(){
    var marca = $(\"select#marca option:selected\").attr(         


        
6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-01 16:18

    this is working for me.

     $(function () {
        $('#checkboxId').on('change', hideShowfunction).trigger('change');
    });
    
    function hideShowfunction(){
    //handle your checkbox check/uncheck logic here
    }
    

提交回复
热议问题