Skip to main content
Source Link
NewBie
  • 365
  • 4
  • 12

Magento 2: How can get value input with knockout Js?

<input type="hidden" name="test" value="test"/>

i want using ko get value of input. my component

define([
    'Magento_Ui/js/form/form',
    'jquery',
    'jquery/ui'
], function(Component) {
    'use strict';
    return Component.extend({
        initialize: function () {
            this._super();
            // component initialization logic
            return this;
        }
    });
});