"onchange" refusé dans balise select
audrey
-
audrey -
audrey -
aaaah je vais craquer!!pkoi mon "onchange" dans ma balise select n'est pas accepté??il me dit que l'objet ne ghere pas cette propriete ou cette methode...donc je pense que l'erreur viet d'ailleurs (pb de formulaire ou autre?).
Merci de m'aider!!!
<HTML>
<HEAD>
<TITLE> </TITLE>
<script language="javascrip">
function niv_diplome()
{
if (document.FormPerso.chg_niveau.value != "yes")
{
document.FormPerso.chg_niveau.value="yes";
chg_niveau=document.FormPerso.chg_niveau.value;
indice=document.form.niveau.selectedIndex;
niveau=document.form.niveau.option[indice].value;
window.location.href='formulaire.php3?niveau=' + niveau + '&chg_niveau=' + chg_niveau;
}
}
</script>
</HEAD>
<BODY>
<table>
<tr>
<td>
<form name="FormPerso" action="search.php3" method="get">
<input type="hidden" name="chg_niveau" value="yes">
<table>
<tr>
<td>
<table>
<tr>
<td>Selectionnez le niveau de votre dernier diplôme obtenu
<td>
</tr>
<tr>
<td>
<select name="niveau" onChange="niv_diplome()"> <option selected><--Niveau-->
<option value="1">Bac
<option value="2">Bac+2
<option value="3">Bac+3
<option value="4">Bac+4
</select>
<td>
</tr>
</table>
</td>
<?
if ($chg_niveau=="yes" and $niveau=="2")
etc...
?>
Merci de m'aider!!!
<HTML>
<HEAD>
<TITLE> </TITLE>
<script language="javascrip">
function niv_diplome()
{
if (document.FormPerso.chg_niveau.value != "yes")
{
document.FormPerso.chg_niveau.value="yes";
chg_niveau=document.FormPerso.chg_niveau.value;
indice=document.form.niveau.selectedIndex;
niveau=document.form.niveau.option[indice].value;
window.location.href='formulaire.php3?niveau=' + niveau + '&chg_niveau=' + chg_niveau;
}
}
</script>
</HEAD>
<BODY>
<table>
<tr>
<td>
<form name="FormPerso" action="search.php3" method="get">
<input type="hidden" name="chg_niveau" value="yes">
<table>
<tr>
<td>
<table>
<tr>
<td>Selectionnez le niveau de votre dernier diplôme obtenu
<td>
</tr>
<tr>
<td>
<select name="niveau" onChange="niv_diplome()"> <option selected><--Niveau-->
<option value="1">Bac
<option value="2">Bac+2
<option value="3">Bac+3
<option value="4">Bac+4
</select>
<td>
</tr>
</table>
</td>
<?
if ($chg_niveau=="yes" and $niveau=="2")
etc...
?>
A voir également:
- "onchange" refusé dans balise select
- Accès refusé - Guide
- Comment supprimer un fichier qui refuse d'être supprimé - Guide
- Demande de suivi instagram refusé - Forum Instagram
- Comment savoir si quelqu'un a refusé notre demande d'ami sur snapchat ✓ - Forum Snapchat
- Appel refusé whatsapp - Forum Samsung