function getData(obj_form){
var hData = {};
$('input, textarea, select', obj_form).each(function(){
if(this.name && this.name!=='') {
var data;
if (this.type === 'checkbox') {
console.log('ветка true');
data = this.checked;
} else {
console.log('ветка false');
data = this.value;
}
hData[this.name] = data;
console.log('hData[' +this.name + '] = ' + hData[this.name]);
}
});
return hData;
};
function(event) {
event.preventDefault();
$('.device_model_btns a').removeClass('active');
$(this).addClass('active');
var id = $(this).attr('href');
$('.phone_tabs_item').hide();
$('.phone_tabs_item').removeClass('phone_tabs_item_active');
$(id).addClass('phone_tabs_item_active');
$(id).show();
resetMoreContentBtn();
}
p {
word-break: keep-all;
}
.button {
width: 239px;
height: 55px;
border-radius: 50px;
border: solid 3px #adc21b;
background:
repeating-linear-gradient(
45deg,
#666, #666 5%,
transparent 5%, transparent 50%,
#666 50%, #666 55%,
transparent 55%, transparent 100%
),
repeating-linear-gradient(
-45deg,
#666, #666 5%,
transparent 5%, transparent 50%,
#666 50%, #666 55%,
transparent 55%, transparent 100%
);
background-size: 10px 10px;
}