Docs
API
  • submit(params: Object)


    submit and send form data to server.

    Example

    
    form.submit();
    

    Params properties

    failure

    Function

    Failure handler.

    
    form.submit({
      failure: function(){
        ...
      }
    });
    

    params

    Object

    When submit form sends form fields values.
    To overwrite them/add extra it requires to use property params.

    
    form.submit({
      params: {
        my: 'Hi',
    	productName: 'Kia Sorento'
      }
    });
    

    method

    String

    Method of request.

    
    form.submit({
      method: 'POST'
    });
    

    success

    Function

    Success handler.

    
    form.submit({
      success: function(){
        ...
      }
    });