Answers for "solution for multiple country forms"

0

solution for multiple country forms

$("[name=Country]").on("change",function(){
    if($(this).val()=="United States"){
        var self =this
        setTimeout(function(){
            $(self).closest("form").find("[name=state]").prop("required",true)
        },500)
    }
    });
Posted by: Guest on July-13-2021

Browse Popular Code Answers by Language