single code from jquery | Sololearn: Learn to code for FREE!


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.

5/4/2020 6:51:15 PM


3 Answers

New Answer


It sets the value of the input tag to an ampty string. (clears the input field)


yochanan sheinberger thanks