2010-08-28 2 views

Répondre

2

utilisant jquery:

$('#input_id').click(function() { 
    $('#div_id').css('background-image','url') 
}); 
0

Quelque chose comme ceci:

var input = document.getElementById("my_input_id"); 

input.onclick = function() 
{ 
    document.getElementById("my_div").style.backgroundColor = "blue"; 
}; 
Questions connexes