Ah ok ! Thanks,
I so much changed your plugin that I’m afraid to need to update the code again 🙁 So I just wrote this little code, maybe that can help someone else 🙂
1°) jQuery
[code]$(‘.ajaxsearchpro form .asp_custom_f .asp_option’).each(function(){
var cbContainer = $(this);
$(this).find(‘.label’).click(function(){
var cbElement = $(cbContainer).find(‘input[type=checkbox]’);
var cbState = $(cbElement).prop(‘checked’);
if(cbState == true){
$(cbElement).prop(‘checked’, false).change();
}else{
$(cbElement).prop(‘checked’, true).change();
}
});
});[/code]
2°) CSS
[code].label
{
cursor: pointer;
}[/code]