Bonjour,
j'ai un problème sur les forms.
En fait, j'aimerais vérifier si un champ est rempli avant de lancer mon action. J'ai toutes mes fonctions, mon seul problème est que je n'arrive pas à récupérer mon champ qui se trouve dans un autre form. Le premier form (Rech) fonctionne, c'est sur les autres forms que je n'y arrive pas. A la place de this, j'ai essayé de mettre num_i mais ça ne marche pas.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33 <table class="table_cat1"> <colgroup class="label" /> <colgroup class="data" /> <tbody> <tr> <form name="Rech" method="post" action="javascript:Aff('PartHide');" onsubmit="return validate(this);"> <td> N°</td> <td> <input type="text" name="num_i" maxlength="12" size="12" value="" class="pt"></td> <td> <button type="submit" name="rechercher" multiclic="true"> Rech</button> </td> </form> <td> <br /> <form name="co" method="post" onsubmit="return validate(this);" action="Co.html" target="_top"> <button type="submit" name="co"> Co</button> </form> </td> <td> <br /> <form name="sup" method="post" onsubmit="return validate(this);" action="Sup.html" target="_top"> <button type="submit" name="sup"> Sup </button></form> </td> </tr> </tbody> </table>
Merci de votre aide
Partager