How to submit a form in Semantic UI?

后端 未结 8 1465
南旧
南旧 2021-02-04 07:57

I know how to validate a form using Semantic UI, and can even read in console the message \"Form has no validation errors, submitting.\" However, where is this submitting to? I

8条回答
  •  我在风中等你
    2021-02-04 08:41

    Semantic UI has it's own API to submit form. for example:

    $('.ui.form .submit.button')
    .api({
        url: 'server.php',
        method : 'POST',
        serializeForm: true,
        beforeSend: function(settings) {
        },
        onSuccess: function(data) {
        }
    });
    

提交回复
热议问题