jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput Wrong value

This topic contains 2 replies, has 2 voices, and was last updated by  lopez306 10 years, 1 month ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Wrong value Posts
  • Wrong value #70851

    lopez306
    Participant

    Hi. I have situation as follows:

     $("#jqxNumberInput").jqxNumberInput({
         width: '250px',
         height: '25px',
         spinButtons: false,
         inputMode: 'simple',
         decimalSeparator: ',',
         groupSeparator: '.',
     }).jqxNumberInput('setDecimal', null);

    When I want to insert 1 for example, I get 10 instead.
    jqWidgets 3.8.0

    http://jsfiddle.net/zRBeY/278/

    Wrong value #70855

    ivailo
    Participant

    Hi lopez306,

    Null is not supported value about this widget. jqxNumberInput have to work only with numbers.
    Like a workaround, if you want to use empty input, try to remove the Separator’s properties.

    http://jsfiddle.net/n4steg3q/

    Best Regards,
    Ivailo Ivanov

    jQWidgets Team
    http://www.jqwidgets.com

    Wrong value #70862

    lopez306
    Participant

    I know this trick works, but decimal separator is important to me. It’s pretty weird you guys don’t support nulls for this widget.

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

You must be logged in to reply to this topic.