여기에 문제가 무엇인지 알아내는 데 어려움을 겪고 있습니다. 이전에 JavaScript로 양식 요소를 작성했으며 효과가있었습니다. 선택을 처음 수행 한 것입니다. "형식"을 사용하여 선택됩니다JavaScript로 만들 때 내 SELECT 양식 요소가 죽어 가고 있습니다.
그래서 기본적으로 때 "만화"이 상자를 선택, 자바 스크립트는 새로운 선택 상자를 만듭니다 여기에 문제의 페이지입니다.
function contentchange(changeit) {
if(changeit.value=='comic')
{
document.getElementById("extrafield1").innerHTML='<img src="design/espaceur.gif" width="12" height="1">Webcomic';
document.getElementById("extrafield2").innerHTML="<img src='design/espaceur.gif' width='10' height='1'><select name='cf' id='cf' class='basic_box'><option value='1'>The Cloud Chasers</option></select>";
}
else
{
document.getElementById("extrafield1").innerHTML="";
document.getElementById("extrafield2").innerHTML="";
} }
그리고 여기가 내 페이지에 넣어 어디 : 다음은 자바 스크립트입니다 그래서
<div id="extrafield2">
<?php if ($filter_type == 'review' || $filter_type == 'game') { ?>
<img src="design/espaceur.gif" width="10" height="1"><select name="pf" class="basic_box" id="pf">
<?php nintendocodes("platform", "nintendo", $filter_platform, false, "All"); ?>
</select>
<?php } else if ($filter_type == 'comic') { ?>
<img src="design/espaceur.gif" width="10" height="1"><select name='cf' id='cf' class='basic_box'><?php comiccodes($filter_comic); ?></select>
<?php } ?>
</div>
, 그것은 선택을 만들기로까지 노력하고 있습니다. 그러나 어떤 이유로 양식을 제출할 때 "취하지"않습니다.
을 그리고 거기에 잘 작동 : 나는 페이지 자체에서 사용하는 선택에 대한 동일한 코드를 사용하고 (당신은 여기에서 볼 수 있습니다). 기본적으로 나는이 선택이 작동하지 않는 이유를 모른다. 셀렉트 자체가 훌륭하다고 확신합니다. 자바 스크립트를 통해 잘 나타납니다. 단지 "취하지"않습니다.
도움 말? 대신
<table border="0" cellspacing="0" cellpadding="0">
<form action="content.php" method="get">
...
</form>
</table>
의
오, 내가 언급해야 할 것은 Firefox 나 Chrome이 아닌 Internet Explorer에서 작동한다는 것입니다. 어떤 것들이 일반적으로 일하는 것과 반대입니다. –