Themans

How Can I Instantly Clear the Value of Any Input Inside a Div?

Asked by Themans 2 years ago div value input


Pablo G
1
 
If you'd like you can use jQuery:

$(#myDiv").each(function(){
   if($(this).type == "input")
      $(this).val('');
});

Ans you can also do this:

$(#myDiv input").val('');

by Pablo G 2 years ago

Answer this question

How Can I Instantly Clear the Value of Any Input Inside a Div?

0 errors found:

 
0