single code from jquery | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 5

single code from jquery

could anyone tell me the use of this line in js. $("input").val(""); this was a part of creating a to-do list.

4th May 2020, 6:51 PM
NARESH
NARESH - avatar
3 Answers
+ 3
It sets the value of the input tag to an ampty string. (clears the input field)
4th May 2020, 6:54 PM
yochanan sheinberger
yochanan sheinberger - avatar
4th May 2020, 7:26 PM
NARESH
NARESH - avatar
0
ok
7th May 2020, 3:01 PM
yaxog79408@beiop.com