function attribcolor(str){ var divstr = str+'_div'; var color = document.getElementById(str).value; try{ document.getElementById(divstr).style.backgroundColor = color; } catch(e){} }
function attribcolor(str){ var divstr = str+'_div'; alert(document.getElementById(str).value) var color = document.getElementById(str).value; document.getElementById(divstr).style.backgroundColor= color; }
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question