jQueryUI accordion with checkboxes

前端 未结 4 1483
遥遥无期
遥遥无期 2020-12-19 02:32

I\'m trying to put a checkbox in each of my accordion headings to indicate whether something should be disabled or not. The checkbox shows up fine, however, its not clickabl

4条回答
  •  再見小時候
    2020-12-19 02:37

    Try setting the checkbox to checked in the acordion click event, using

    
    

    in the html and

    $('input[name=foo]').attr('checked', true);
    

    in the event.

提交回复
热议问题