Код: Выделить всё
DN.onkeyup = DN.onkeypress = function(){
var div = document.getElementById("DN").value
document.document.getElementsByClassName("options-parameters-input").style.fontSize = div;
}< /code>
#one{
height:100px;
width:100px;
background-color:#CCCCCC;
border:none;
margin:10px;
float:left;
}< /code>
gfdgd
Test
http://jsfiddle.net/gxtug/85/образно class = "Snippet-Code">
Код: Выделить всё
DN.onkeyup = DN.onkeypress = function(){
var div = document.getElementById("DN").value
document.getElementById("one").style.fontSize = div;
}< /code>
#one{
height:100px;
width:100px;
background-color:#CCCCCC;
border:none;
margin:10px;
float:left;
}< /code>
gfdgd
Test
http://jsfiddle.net/gxtug/86/образно />
Error: Uncaught TypeError: Cannot read property 'getElementsByClassName' of undefined(…)
So my question is how to get working when I want to target element like div class ?
My goal is to make ability in options page panel that admin user can change / inject Новые правила CSS из TextAREA или ввода для определенных элементов. И есть такие элементы, как дивизионный класс социально-контентеров-ионы и другие.>
Подробнее здесь: https://stackoverflow.com/questions/406 ... byid-works
Мобильная версия