https://kristina3531.github.io/SunTour/
var commentId = this.id.slice(7);
$.post("../delete.php", {id : commentId}, function( serverResponse ){
if( serverResponse === 'ok' ) {
$this.hide();
}
})
var $this = $(this);
var commentId = this.id.slice(7);
$.post("../delete.php", {id : commentId}, function( serverResponse ){
if( serverResponse === 'ok' ) {
$this.hide();
}
})
Изменить сам html код внутри div не представляется возможным, т.к. этот код генерируется динамически
// это цена
$dbPrice = \CPrice::GetList(
array(),
array(
"PRODUCT_ID" => $PRODUCT_ID,
"CATALOG_GROUP_ID" => $PERSON_TYPE_ID
)
);
$arPrice = $dbPrice->Fetch();
$price = $arPrice["PRICE"];
// это список доступных скидок
$arDiscounts = \CCatalogDiscount::GetDiscountByProduct(
$PRODUCT_ID,
$USER->GetUserGroupArray(),
"N",
$PERSON_TYPE_ID,
SITE_ID
);
if($arDiscounts !== false) {
$price = \CCatalogProduct::CountPriceWithDiscount(
$arPrice["PRICE"],
$arPrice["CURRENCY"],
$arDiscounts
);
}
// в переменной $price будет цена с учетом скидок
myPlacemark.options.set("visible", false)
'<input type="radio" id=""'