01 02 03 | < input type = "text" id = "camp1" name = "camp1" value = "" placeholder = "escriu alguna cosa" > < input type = "text" id = "camp2" name = "camp2" value = "" > < a href = "#" id = "boto" name = "boto" value = "" >omple el 1 camp i fes clic aquí</ a > |
01 02 03 | $( "#boto" ).click( function (){ $( "#camp2" ).val($( "#camp1" ).val()); }); |