260422_04_ENH: 지역 변경

This commit is contained in:
2026-04-22 15:29:14 +09:00
parent 52a0807211
commit 6a6b5173c0

View File

@@ -174,19 +174,6 @@
</div>
<hr/>
</div>
<!--
<div class="form-group">
<label for="r_covid">코로나 관련 내용 확인</label>
<p>
- 조사원과 응답자의 안전을 위해 코로나19 백신 2차 접종 이상 완료자만 지원 가능<br>
- 코로나19 확진 후 완치자 지원 가능<br>
</p>
<p class=''>
<input type="checkbox" name="r_covid" id="r_covid" value="1" /> 위 내용을 확인하였음
</p>
<hr/>
</div>
-->
<div class="form-group">
<label for="r_agree1">개인정보 동의</label>
<p class="r_gree1">
@@ -225,8 +212,9 @@
$(function(){
alert("제21대 대통령선거 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
location.href="../index.asp";
//alert("<%=ltitle%> 출구조사 조사원 모집은 마감되었습니다.\n관심을 가져주셔서 감사합니다.");
//alert("<%=ltitle%> 출구조사 조사원 모집은 준비중입니다.\n관심을 가져주셔서 감사합니다.");
//location.href="../index.asp";
AjaxSelect($("#r_job"), "job");//구분
@@ -355,61 +343,6 @@
}
});
*/
function specialDistrict(){
if(["0990","0991","0490","0992","0993","0994","0995","0996","0997","0998","0999"].includes($("#r_district").val())){
$("#r_district").val("");
}
$("#r_district option").each(function(i,e){
if(["0990","0991","0490","0992","0993","0994","0995","0996","0997","0998","0999"].includes($(e).val())){
$(e).hide();
}
})
if($("select[name=r_sgg]").val().includes("용인시") && $("#r_district option[value=0991]").length > 0){
$("#r_district option[value=0991]").show();
}
if($("select[name=r_sgg]").val() == "포천시" && $("#r_district option[value=0990]").length > 0){
$("#r_district option[value=0990]").show();
}
if($("select[name=r_sgg]").val() == "중구" && $("#r_district option[value=0490]").length > 0){
$("#r_district option[value=0490]").show();
}
if($("select[name=r_sgg]").val() == "동두천시" && $("#r_district option[value=0992]").length > 0){
$("#r_district option[value=0992]").show();
}
if($("select[name=r_sgg]").val() == "양주시" && $("#r_district option[value=0993]").length > 0){
$("#r_district option[value=0993]").show();
}
if($("select[name=r_sgg]").val() == "연천군" && $("#r_district option[value=0994]").length > 0){
$("#r_district option[value=0994]").show();
}
if($("select[name=r_sgg]").val() == "남양주시" && $("#r_district option[value=0995]").length > 0){
$("#r_district option[value=0995]").show();
}
if($("select[name=r_sgg]").val() == "안양시" && $("#r_district option[value=0996]").length > 0){
$("#r_district option[value=0996]").show();
}
if($("select[name=r_sgg]").val() == "군포시" && $("#r_district option[value=0997]").length > 0){
$("#r_district option[value=0997]").show();
}
if($("select[name=r_sgg]").val() == "이천시" && $("#r_district option[value=0998]").length > 0){
$("#r_district option[value=0998]").show();
}
if($("select[name=r_sgg]").val() == "안성시" && $("#r_district option[value=0999]").length > 0){
$("#r_district option[value=0999]").show();
}
}
//지역에 따른 권역 change
$("#r_area").on("change", function(){
@@ -418,8 +351,6 @@
if(r_position != "" || r_area != ""){
AjaxSelect($("#r_district"), "district", r_area);
specialDistrict();
if($("#r_district").children("option").length == 2){
$("#r_district").val($("#r_district").children("option:eq(1)").val());
@@ -512,8 +443,6 @@
$.each(dong, function(i, e){
$("select[name=r_emd]").append("<option value='"+e+"'>"+e+"</option");
});
specialDistrict();
})
$("#r_chk").hide();
@@ -630,13 +559,7 @@
$("#r_ex").focus();
return false;
}
/*
if($("#r_covid").is(":checked") == false){
alert("코로나 관련 내용을 확인 하셔야 합니다.");
$("#r_covid").focus();
return false;
}
*/
if($("#r_agree1").is(":checked") == false){
alert("개인정보 수집 및 활용에 동의 하셔야 합니다.");
$("#r_agree1").focus();