-2

I use the following syntax to find and zero text boxes:

x.find('input:text, input:password, input:file, select, textarea').val('');

This does not find and zero number spinners. Is there a syntax for using jquery find to locate a number spinner?

Thanks to all...

1
  • 2
    You need to post more code. x could refer to anything. Looks like this is a jQueryUI thing, not a jQuery thing. Jun 26, 2018 at 18:32

1 Answer 1

2

This jquery selector will find all number input fields and clear the value.

$("input[type='number']").val('');
1
  • 1
    this is a very low quality answer Jun 26, 2018 at 18:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.