const fieldset = document.getElementById("#fieldset");
if (fieldset) {
document.getElementById("postButton").removeAttribute("disabled");
} else {
$("#form").on("submit", function (event) {
event.preventDefault();
const fieldset = document.getElementById("#fieldset");
if (fieldset) {
$.ajax({
url: "",
type: "POST",
contentType: "application/json",
data: form.toJson(),
})
}
});
функция_которая_добавляет_fieldset_ы() {
//...
document.getElementById("postButton").removeAttribute("disabled");
}
поставить h1 по центру страницы
если выставить margin:100 для .myHeading, то выходит, что бэкграунд сдвигается
Перешуршал википедию но так и ненашел ответ.
HTML <-\
- SGML <- GML
XML <-/
Setting
settings
setting_user
user_id | setting_id
public function settings() {
return $this->belongsToMany(Setting::class);
}
$user->settings
$user->settings->create([...])
curl_setopt(CURLOPT_POSTFIELDS, [
"login" => "asdasd",
"password" => "asdas",
"amount" => "10", // сюда нужно вставить перменную php
"currency" => "EUR", // сюда нужно вставить перменную php
"orderId" => "adasd-asd1213-asd" // сюда нужно вставить перменную php
]);
$amount = 10;
$currency = 'EUR';
$orderId = 'adasd-asd1213-asd';
curl_setopt(CURLOPT_POSTFIELDS, [
"login" => "asdasd",
"password" => "asdas",
"amount" => $amount,
"currency" => $currency,
"orderId" => $orderId,
]);