Comment je peux changer id d'une input avec Jquery ?
voici mon code :
mais toujours mon id est vide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 <head> <script src="http://code.jquery.com/jquery-1.9.1.js"></script> </head> <body><form action="" id="toto" name="toto"> <input name="ok" type="text" id=""> <script> $('#toto').find('input[name="ok"]').id = 'post'; </script> </form>
Merci
Partager