В result_modifer
В template
| Код |
|---|
$val_prop.='<label class="color_box"><input type="checkbox" style="display:none;" name="'.$arResult["FILTER_NAME"].'_pf['.$prop["CODE"].'][]" '.$checked.' value="'.$val.'"/><span style="background-color:#'.$arListProp[$val].';width: 18px; height: 18px;float:left; margin:5px;"></span></label>'; |
| Код |
|---|
<style>
.selected_color{border:1px solid #000; margin:4px !important;}
</style>
<script type="text/javascript">
$(document).ready(function(){
$(".color_box span").click(function(){
$(this).toggleClass("selected_color");
});
})
</script>
|