Вопрос по валидности хтмл

D
На сайте с 20.09.2010
Offline
175
412

Что значит следующая ошибка:

Line 240, Column 118: there is no attribute "onChange"

…lur="check_rub(this.value);" onChange="xajax_kat_subrub(this.options[this.sele… You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

Валидатор ругается вот на такой селект:

<select name="rub" id="kat_rub" style="width: 220px;" class="input_text" onBlur="check_rub(this.value);" onChange="xajax_kat_subrub(this.options[this.selectedIndex].value);">
jvee
На сайте с 27.09.2010
Offline
2
#1

Вроде как в описании проблемы сказано, что ваш DOCTYPE не поддерживает данный атрибут, попробуйте сменить его на HTML 4.01 Transitional, или какой-либо другой. Сам с такой проблемой не сталкивался, так что более конкретного ничего не могу сказать.

htmlbook.ru/html/!doctype

P
На сайте с 19.03.2009
Offline
17
#2
datum:
incorrect use of the "Strict" document type

Strict такая вещь, ему даже target="_blank" не нравится

Помогу с вёрсткой, html, css, js, jquery, php, mysql ($) icq 8938933 Быстрый, удобный и недорогой хостинг (http://sweb.ru/p17046) Виза в Великобританию (http://www.englishexpert.ru/velikobritaniya/viza/viza-v-velikobritaniu/)
sirota77
На сайте с 08.09.2008
Offline
161
#3
poyzn:
Line 240, Column 118: there is no attribute "onChange"

Правильно будет onchange

jvee
На сайте с 27.09.2010
Offline
2
#4
sirota77:
Правильно будет onchange

хм.. кстати да ))

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий