jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput Limited Numbers

This topic contains 3 replies, has 2 voices, and was last updated by  Hristo 8 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • Limited Numbers #92291

    gusanomaly
    Participant

    Hello, I want to use only a list of numbers like: 0, 15, 30, 45, 60. (Same behavior with Spin button or keyboard).
    Exist any way to use that?

    Thank you, best regard.
    Gustav.

    Limited Numbers #92300

    Hristo
    Participant

    Hello Gustav,

    Please, take a look at this example.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Limited Numbers #92310

    gusanomaly
    Participant

    Hello, thank you for the answer. Yes, this is that i need, finally exist any way to have the same behavior with keyboard?
    f.e.: if I put 16 is possible.

    Thank you again!
    Gustav.

    Limited Numbers #92320

    Hristo
    Participant

    Hello Gustav,

    You could try to create a workaround by bind to ‘keypress’ and for example when arrow up or down is clicked to set desired value with .val(value) method.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.