Fill in to get the value of the form field with id="name" and set it as the text of the paragraph with id="txt". var v = $("#na | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Fill in to get the value of the form field with id="name" and set it as the text of the paragraph with id="txt". var v = $("#na

Fill in to get the value of the form field with id="name" and set it as the text of the paragraph with id="txt". var v = $("#name"). ; $(" ").text( );

30th Sep 2019, 11:28 AM
Mayuresh Mhatre
Mayuresh Mhatre - avatar
4 Answers
+ 2
var v = $("#name").val() ; $("#txt ").text(v );
17th May 2020, 6:42 AM
Mohamed Hadji
Mohamed Hadji - avatar
+ 1
Answer Val() #txt v
16th Oct 2022, 8:56 PM
HORACIO LOPEZ
HORACIO LOPEZ - avatar
0
plz help
31st Dec 2019, 2:30 PM
Arjun Singhal
Arjun Singhal - avatar
- 3
https://code.sololearn.com/W92qQdFZEs5y/#html // My solution is simple JavaScript, but JQuery code is in JS
1st Oct 2019, 11:24 AM
Jônatas Araripe
Jônatas Araripe - avatar