jQWidgets Forums

jQuery UI Widgets Forums Editors NumberInput Load value from initialization

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Peter Stoev 12 years, 4 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Load value from initialization #13066

    santu.555@gmail.com
    Participant

    Hi,

    I want to load the Numberinput widget with a value, but it is not working. I tried the numberinput validation example and the value is not getting set to 233.
    $(“#validation”).jqxNumberInput({ width: ‘250px’, height: ’25px’, validationMessage: ‘Custom Validation Message’, max: 1000, val: 233, theme: theme });
    But when I try to set the value explicitly then it is working.
    $(‘#validation’).jqxNumberInput(‘value’, 233);

    Could you let me know whether setting the value from the first approach is correct or not?

    Thanks
    Santosh

    Load value from initialization #13100

    Peter Stoev
    Keymaster

    Hi Santosh,

    You can use the “decimal” property. ‘val’ is not a property, it is a method as stated in the API.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    http://www.jqwidgets.com

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

You must be logged in to reply to this topic.