AP
Size: a a a
AP
D
AP
D
D
VS
AP
D
D
VS
D
D
VS
function popUpMultiple () {
jQuery('select.custom').on('change', function(e) {
var optionVal = jQuery(this).val();
// console.log(e);
//jQuery('.desc-form').toggle();--------------------------
//jQuery('select.custom[value='+pop+']')
console.log(jQuery('select.custom[value='+pop+']'));
jQuery('.desc-form').hide();
var pop = e.target.value;
// var i = jQuery('.pop-up-form').attr("id");
// console.log(pop, i);
//var ppp = jQuery('.desc-form[data-id=popup-'+i+']');
// pppp = jQuery(ppp).data('id');
// if (e.target.value == pppp) {
// jQuery(ppp).toggle();
jQuery('.desc-form[data-id='+pop+']').show();
$('select.custom option:selected').attr('govno','jopa')
//var o = new Option("option text", "value");
/// jquerify the DOM object 'o' so we can use the html method
$(o).html("option text");
$("select.custom").append(o);
})
jQuery('.popup').on('click', function() {
var idButton = jQuery(this).attr("id");
var addAtr = jQuery('.pop-up-form').attr("id", idButton);
//$("select.custom").prepend( $('<option value="+pop+">zero</option>'));
jQuery('.pop-up-form').each(function () {
var blockDesc= jQuery(this);
blockDesc.css({
"opacity": "1",
"visibility": "visible"
})
});
jQuery('.desc-form').each(function () {
const vm = jQuery(this);
var dataIdPopUp = jQuery(this).data('id');
if(dataIdPopUp === 'popup-' + idButton) {
vm.show();
} else {
vm.hide();
}
})
});
jQuery('.close').on('click', function() {
jQuery('.pop-up-form').each(function () {
var blockDesc = jQuery(this);
blockDesc.css({
"opacity": "0",
"visibility": "hidden"
})
})
});
}
popUpMultiple ();
AP
VS
AP
AP
D
AP
VS