echo '<label onclick="Fcheck('.$row[0].');" style="display: block; width: 100px; height: 100px; cursor: pointer; position: relative; z-index: 9;"><input type="checkbox" name="friendOnK[]" ></input></label>';
javascript
function Fcheck(check) { alert('sprawdz'); div=document.getElementById('check'+check); if(div.style.background=='none repeat scroll 0% 0% transparent') { div.style.background='#002348'; } else div.style.background='none repeat scroll 0% 0% transparent'; }
i jest tak, że jak kliknę to 2 x pojawia sie alert i oczywiście nie zmienia się kolor tła, chociaż jakieś pół godziny temu to działało.