Link to home
Start Free TrialLog in
Avatar of hidrau
hidrauFlag for Brazil

asked on

how can I clean all inputs wiht Jquery?

Hello Guys,

I have a form with almost 30 inputs, I have a button that I want to trigger a function where can clean all the inputs.


how can I do this ?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Robin Hall
Robin Hall
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I would simply do this:-
$(':input').val('');

Open in new window

Avatar of hidrau

ASKER

thanks very much