|
|
@@ -199,7 +199,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form_field">
|
|
|
+ <div class="form_field" id="form_field1_Up">
|
|
|
<div class="select_custom deal_opt1" disabled>
|
|
|
<div class="combo">
|
|
|
<div class="select">옵션1선택</div>
|
|
|
@@ -209,7 +209,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="form_field">
|
|
|
+ <div class="form_field" id="form_field2_Up">
|
|
|
<div class="select_custom deal_opt2" disabled>
|
|
|
<div class="combo">
|
|
|
<div class="select">옵션2선택</div>
|
|
|
@@ -325,16 +325,20 @@
|
|
|
if (idx == 0){
|
|
|
if (flag == "layer"){
|
|
|
$objUp = $('.pd_descrp_pop .opt_select .select_custom.deal_opt1');
|
|
|
- $objUp.html('');
|
|
|
+ // $objUp.html('');
|
|
|
+ $objUp.remove();
|
|
|
}else if (flag == "Up"){
|
|
|
$objUp = $('.pd_detail .opt_select .select_custom.deal_opt1');
|
|
|
- $objUp.html('');
|
|
|
+ // $objUp.html('');
|
|
|
+ $objUp.remove();
|
|
|
}else{
|
|
|
$objDown = $('.pd_desc_wrap .opt_select .select_custom.deal_opt1');
|
|
|
- $objDown.html('');
|
|
|
+ // $objDown.html('');
|
|
|
+ $objDown.remove();
|
|
|
}
|
|
|
- $('.form_field .select_custom.deal_opt1').attr('disabled', false);
|
|
|
+ // $('.form_field .select_custom.deal_opt1').attr('disabled', false);
|
|
|
//------
|
|
|
+ tag1 += '<div class="select_custom deal_opt1">\n';
|
|
|
tag1 += '<div class="combo">\n';
|
|
|
tag1 += '<div class="select">옵션1선택</div>\n';
|
|
|
tag1 += '<ul class="list">\n';
|
|
|
@@ -366,21 +370,26 @@
|
|
|
//------
|
|
|
tagUpS += '</ul>\n';
|
|
|
tagUpS += '</div>\n';
|
|
|
+ tagUpS += '</div>\n';
|
|
|
tagDownS += '</ul>\n';
|
|
|
tagDownS += '</div>\n';
|
|
|
+ tagDownS += '</div>\n';
|
|
|
//------
|
|
|
}
|
|
|
|
|
|
if (flag == "layer"){
|
|
|
- $objUp.prepend(tagUpS);
|
|
|
+ // $objUp.prepend(tagUpS);
|
|
|
+ $('#form_field1_'+flag).append(tagUpS);
|
|
|
var pop_desc_option02 = new sCombo('.pd_descrp_pop .opt_select .select_custom.deal_opt1');
|
|
|
//$('.pd_descrp_pop .opt_select .select_custom.deal_opt1').find('.combo .select').trigger('click');
|
|
|
}else if (flag == "Up"){
|
|
|
- $objUp.prepend(tagUpS);
|
|
|
+ // $objUp.prepend(tagUpS);
|
|
|
+ $('#form_field1_'+flag).append(tagUpS);
|
|
|
var detail_deal_option02 = new sCombo('.pd_detail .opt_select .select_custom.deal_opt1');
|
|
|
//$('.pd_detail .opt_select .select_custom.deal_opt1').find('.combo .select').trigger('click');
|
|
|
}else{
|
|
|
- $objDown.prepend(tagDownS);
|
|
|
+ // $objDown.prepend(tagDownS);
|
|
|
+ $('#form_field1_'+flag).append(tagDownS);
|
|
|
var desc_option02 = new sCombo('.pd_desc_wrap .opt_select .select_custom.deal_opt1');
|
|
|
//$('.pd_desc_wrap .opt_select .select_custom.deal_opt1').find('.combo .select').trigger('click');
|
|
|
}
|
|
|
@@ -439,17 +448,21 @@
|
|
|
if (idx == 0){
|
|
|
if (flag == "layer"){
|
|
|
$objUp = $('.pd_descrp_pop .opt_select .select_custom.deal_opt2');
|
|
|
- $objUp.html('');
|
|
|
+ // $objUp.html('');
|
|
|
+ $objUp.remove();
|
|
|
}else if (flag == "Up"){
|
|
|
$objUp = $('.pd_detail .opt_select .select_custom.deal_opt2');
|
|
|
- $objUp.html('');
|
|
|
+ // $objUp.html('');
|
|
|
+ $objUp.remove();
|
|
|
}else{
|
|
|
$objDown = $('.pd_desc_wrap .opt_select .select_custom.deal_opt2');
|
|
|
- $objDown.html('');
|
|
|
+ // $objDown.html('');
|
|
|
+ $objDown.remove();
|
|
|
|
|
|
}
|
|
|
- $('.form_field .select_custom.deal_opt2').attr('disabled', false);
|
|
|
+ //$('.form_field .select_custom.deal_opt2').attr('disabled', false);
|
|
|
//------
|
|
|
+ tag1 += '<div class="select_custom deal_opt2">\n';
|
|
|
tag1 += '<div class="combo">\n';
|
|
|
tag1 += '<div class="select">옵션2선택</div>\n';
|
|
|
tag1 += '<ul class="list">\n';
|
|
|
@@ -481,21 +494,26 @@
|
|
|
//------
|
|
|
tagUpS += '</ul>\n';
|
|
|
tagUpS += '</div>\n';
|
|
|
+ tagUpS += '</div>\n';
|
|
|
tagDownS += '</ul>\n';
|
|
|
tagDownS += '</div>\n';
|
|
|
+ tagDownS += '</div>\n';
|
|
|
//------
|
|
|
}
|
|
|
|
|
|
if (flag == "layer"){
|
|
|
- $objUp.prepend(tagUpS);
|
|
|
+ // $objUp.prepend(tagUpS);
|
|
|
+ $('#form_field2_'+flag).append(tagUpS);
|
|
|
var pop_desc_option02 = new sCombo('.pd_descrp_pop .opt_select .select_custom.deal_opt2');
|
|
|
//$('.pd_descrp_pop .opt_select .select_custom.deal_opt2').find('.combo .select').trigger('click');
|
|
|
}else if (flag == "Up"){
|
|
|
- $objUp.prepend(tagUpS);
|
|
|
+ // $objUp.prepend(tagUpS);
|
|
|
+ $('#form_field2_'+flag).append(tagUpS);
|
|
|
var detail_deal_option03 = new sCombo('.pd_detail .opt_select .select_custom.deal_opt2');
|
|
|
//$('.pd_detail .opt_select .select_custom.deal_opt2').find('.combo .select').trigger('click');
|
|
|
}else{
|
|
|
- $objDown.prepend(tagDownS);
|
|
|
+ // $objDown.prepend(tagDownS);
|
|
|
+ $('#form_field2_'+flag).append(tagDownS);
|
|
|
var desc_option03 = new sCombo('.pd_desc_wrap .opt_select .select_custom.deal_opt2');
|
|
|
//$('.pd_desc_wrap .opt_select .select_custom.deal_opt2').find('.combo .select').trigger('click');
|
|
|
}
|