비활성화 제출 버튼 형식

코드 예제

1
0

에 양식을 제출 버튼이 비활성화

$('form#id').submit(function(){
    $(this).find(':input[type=submit]').prop('disabled', true);
});
0
0

비활성화 제출 버튼 형식

// default type attribute of plain html button is "submit", so it will trigger submitting a form. 
// add type="button" to a button in form to disable default behavior of submitting the form.

<button type="button" onClick={-do something else like a console log-}>Not a Submit</button>

// also could use preventDefault()
const handleClick = (e) => {
  e.preventDefault()
// do something
} 

비슷한 페이지

예제가있는 유사한 페이지

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................