Bonjour
Pour copier un champ texte dans un autre je fais comme ca :
seulement je voudrais pouvoir en copier plusieurs a la fois et surtout les coller dans plusieurs champs .. je la je seche..
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 <form method="post" action="ajoutnews.php" name="ajout"> <center><table> <tr> <td>Texte FR :</td> <td><input type="text" name="textefr"></td> </tr> <tr> <td colspan="2" align="center"> <input type="radio" value="copier" onClick="copier();" /> <script type="text/javascript"> function copier(){ document.ajout.textean.value = document.ajout.textefr.value; } </script> </td> <tr> <td>Texte AN :</td> <td><input type="text" name="textean"></td> </tr> <tr> </tr> </table></center> </form>
Partager