B
Size: a a a
B
A
A
B
A
const component = document.getElementById('number');
function myFunc(component) {
if(component.value === "0"){
console.log("ZERO ZERO YO!")
}
}
myFunc(component)
B
A
A
const components = document.querySelectorAll(".components-qty")
function myFunc(components) {
components.forEach(el=>{
if (el.value === "0") {
$( '.us-product-info' ).hide();
$( '.us-product-action-left' ).hide();
$( '.select-components' ).show();
} else {
$( '.us-product-info' ).show();
$( '.us-product-action-left' ).show();
$( '.select-components' ).hide();
}
})
}
myFunc(components)
B
const components = document.querySelectorAll(".components-qty")
function myFunc(components) {
components.forEach(el=>{
if (el.value === "0") {
$( '.us-product-info' ).hide();
$( '.us-product-action-left' ).hide();
$( '.select-components' ).show();
} else {
$( '.us-product-info' ).show();
$( '.us-product-action-left' ).show();
$( '.select-components' ).hide();
}
})
}
myFunc(components)
A
"<a class='gotoLine' href='#190:3'>190:3</a> Uncaught ReferenceError: $ is not defined"это исправить то думаю сможешь
A
A
B
B
A
B
A
AP
AP
RK