Witam! Mam proste pytanie otoz probuje zrobic cos takiego ze w funkcji mam:
funkcja jakastam(margines){
document.getElementById('id').style.margines = 10;
}
i przkeazuje do funckcji
jakastam('left');
wczesniej jest ustalona pozycja relative takze wystarczy left i powinno przesunąć a to nie dziala dopiero jak dam bezposrednio style.left;
funkcja jakastam(){
document.getElementById('id').style.left= 10;
}
jak zrobić zebym po style. mogl dac margines?