jQWidgets Forums

jQuery UI Widgets Forums ASP .NET MVC Number Input Tag Helper

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

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Number Input Tag Helper #96613

    madamipraim
    Participant

    I’m tring to use numeric input control, but I have two problems. I don’t know how to set initial value and when I submit the form the value is not sent.

    What is the right use of the control? This is a sample of my code.

    <form method="post">
    <label asp-for="WarrantyDuration" class="control-label">Warranty duration</label>
    <jqx-numberinput spinButtons="true" theme="@ViewBag.Theme" width="150" height="25" allowNull="false" decimalDigits="0" digits="1"></jqx-numberinput>
    </form>

    Thanks for any help.

    Number Input Tag Helper #96634

    Peter Stoev
    Keymaster

    Hi madamipraim,

    Set the Number Input’s name attribute to have its value sent on Post. For setting initial value, try the value or decimal properties.

    Best Regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

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

You must be logged in to reply to this topic.