if (getType == 'air' || getType == 'train') {
$('#select1').prop('selectedIndex', 0); //сбрасываем выбор у локаций
$(getLocationBlock).show();
} else {
var val = $(getLocations).find('option[data-type="'+ getType +'"]').attr("value");
$(getLocations).val(val);
$(getLocationBlock).hide();
}
hideLocations(getType, getLocations);
function hideLocations(type, locations) {
$(locations).children().each(function () {
if ($(this).data('type') != type) {
$(this).hide();
} else {
$(this).show();
}
});
}
$('.item').click( function(event){ // ловим клик по ссылки с id="go"
event.preventDefault(); // выключаем стандартную роль элемента
$(".item").unbind("click");
#nav .menu-box {
display: block;
}
@media print {
.menu-box {
display:none;
}
}
#nav .menu-box {
display: block;
}
@media print {
.menu-box {
display:none !important;
}
}
nav > li.*class*:before {content:'';}
nav > li.*class*:before {display: none;}
$("body").append(
$("<div></div>", {
'id': 'item',
'class': 'item',
'text': 'Текст'
}).hover(function(e){
$(this).toogleClass("ok");
});
);
<input type="text" value="80 м²" name="square" class="inputText" disabled/>
<!--через тег sup явно не подходит-->
<button type="submit" name="plus" class="inputPlus">+</button>
<button type="submit" name="minus" class="inputMinus">-</button>
<button class="aaa">Узнать значение</button>
var result = JSON.stringify(localStorage,"", 4),
obj = {
"filename": "localStorage.json",
"url": 'data:application/json;charset=utf-8,' + encodeURIComponent(result),
"conflictAction": "prompt",
"saveAs": true
};
chrome.downloads.download(obj);