Submit a duplicate question
乐正凌
乐正凌 2022-03-24 12:41:15
0
1
935

If the form is clicked too quickly, it will be submitted multiple times. Is it necessary to add a mask layer to prevent multiple submissions?

乐正凌
乐正凌

reply all (1)
乐正凌

Write ## in the JS method

#After click

$('#sendSmsBtn').addClass("layui-btn-disabled").attr("disabled",true);

After callback

$('#sendSmsBtn').removeClass("layui-btn-disabled").attr("disabled",false);

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!