I am working with Form API to create a customized form shown in a block. Most of the fields are textfields.
I need a +/- feature for a numeric textfield, i.e.:
Is there an existing field like the above I can use?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
Try the Stepper Field module
The Stepper Field module is based in a plugin for jQuery UI called jQuery.ui.Spinner and provides a new steps widget that can be added to any Integer field.
Here is the image
There is SpinInt module for this
Spinint provides a simple up down arrow widget for integer number fields.