Код: Выделить всё
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
P>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/образно />
Ошибка: Uncaught typeerror: не может прочитать свойство 'getelementsbyclassname' of undefined (…) < /p>
< /blockquote>
Так что мой вопрос - как получить работу, когда я хочу нацелен на элемент, например, на панели « /p>»
wition in infortion in infortion in infortion in anmer in the intormes in antipment in an -pass /p>
Подробнее здесь: https://stackoverflow.com/questions/406 ... byid-works
Мобильная версия