0

jquery

Rearrange the code to get the value of the form field and set it as the value of the paragraph with id="demo". }); $(function() { $("#demo").text(t); var t = $("#user").val();

4th Jun 2018, 11:09 AM
Aniket Naykodi
Aniket Naykodi - avatar
2 Answers
+ 8
$(function() { var t = $("#user").val(); // get the value of the form field $("#demo").text(t); // set it as the value of the paragraph with id="demo" }); And please don't post comments that contain only answers without any explanations: https://code.sololearn.com/WZa4XDtKmBgG/?ref=app
4th Jun 2018, 12:46 PM
NezhnyjVampir
- 2
Hello where are you from???
9th Jul 2018, 6:57 AM
Poorya Rahdar
Poorya Rahdar - avatar