Pages

Enable and Disable JQuery UI accordion rows

Enable and Disable and selecting JQuery UI accordion rows

$('#sdx').click(function(){

$("#accordion").accordion({
active: 0,
});

$('.ui-accordion-header').addClass('ui-state-disabled').on('click', function () {
return false;
});       

$('.ui-accordion-header').eq(0).removeClass('ui-state-disabled').on('click', function () {
return true;
});

});

Search This Blog