jQWidgets Forums

jQuery UI Widgets Forums Vue How to get current form values?

This topic contains 1 reply, has 2 voices, and was last updated by  ivanpeevski 2 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • How to get current form values? #122030

    jqwidgetsdev
    Participant

    Hi,

    When I use const myFormAccount = this.$refs.myFormAccount.value; I only get the default values and not the current values.

    What is the preferred way of getting the *current* JqxForm values from an button onclick event?
    Note: I am using AJAX post.

    Thanks.

    How to get current form values? #122055

    ivanpeevski
    Participant

    Hi,

    As mentioned in a similar post, please have a look at the demo here: codesandbox
    You can use the getComponentByName method to get or set the value of form elements.
    In the demo, the button will first output the original value of the input box and then replace it with “Default”

    Best regards,
    Ivan Peevski
    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.