otherWebsite/ecommerce/js/controlador.js
//dependiendo el parametro que le hemos enviado
dependiendo el parametro que le hemos enviado
dependiendo el parametro que le hemos enviado
function ProductSize(x){
    var XX=x;
    if(XX==1){
        $('#AddTalla').append($(`<button type="button" class="btn">U</button>`));
        document.getElementById("btn-size-Unica").disabled = true;
        document.getElementById("btn-size-Pequeña").disabled = true;
        document.getElementById("btn-size-Mediana").disabled = true;
        document.getElementById("btn-size-Grande").disabled = true;
        document.getElementById("btn-size-Extra").disabled = true;
        document.getElementById("btn-size-Ninguna").disabled = true;
    }
    if(XX==2){
        $('#AddTalla').append($(`<button type="button" class="btn">S</button>`));
        document.getElementById("btn-size-Pequeña").disabled = true;
        document.getElementById("btn-size-Unica").disabled = true;
        document.getElementById("btn-size-Ninguna").disabled = true;
    }
    if(XX==3){
        $('#AddTalla').append($(`<button type="button" class="btn">M</button>`));
        document.getElementById("btn-size-Mediana").disabled = true;
        document.getElementById("btn-size-Unica").disabled = true;
        document.getElementById("btn-size-Ninguna").disabled = true;
    }
    if(XX==4){
        $('#AddTalla').append($(`<button type="button" class="btn">L</button>`));
        document.getElementById("btn-size-Grande").disabled = true;
        document.getElementById("btn-size-Unica").disabled = true;
        document.getElementById("btn-size-Ninguna").disabled = true;
    }
    if(XX==5){
        $('#AddTalla').append($(`<button type="button" class="btn">XL</button>`));
        document.getElementById("btn-size-Extra").disabled = true;
        document.getElementById("btn-size-Unica").disabled = true;
        document.getElementById("btn-size-Ninguna").disabled = true;
    }
    if(XX==6){
        $('#AddTalla').append($(`<button type="button" class="btn">N</button>`));
        document.getElementById("btn-size-Ninguna").disabled = true;
        document.getElementById("btn-size-Unica").disabled = true;
        document.getElementById("btn-size-Pequeña").disabled = true;
        document.getElementById("btn-size-Mediana").disabled = true;
        document.getElementById("btn-size-Grande").disabled = true;
        document.getElementById("btn-size-Extra").disabled = true;
    }
}
function ProductSize ( x ) { var XX = x ; if ( XX == 1 ) { $ ( '#AddTalla' ) . append ( $ ( ` ` ) ) ; document . getElementById ( "btn-size-Unica" ) . disabled = true ; document . getElementById ( "btn-size-Pequeña") . d isabled  rue; document . getElementById ( "btn-size-Mediana" ) . disabled = true ; document . getElementById ( "btn-size-Grande" ) . disabled = true ; document . getElementById ( "btn-size-Extra" ) . disabled = true ; document . getElementById ( "btn-size-Ninguna" ) . disabled = true ; } if ( XX == 2 ) { $ ( '#AddTalla' ) . append ( $ ( ` ` ) ) ; document . getElementById ( "btn-size-Pequeña") . d isabled  rue; document . getElementById ( "btn-size-Unica" ) . disabled = true ; document . getElementById ( "btn-size-Ninguna" ) . disabled = true ; } if ( XX == 3 ) { $ ( '#AddTalla' ) . append ( $ ( ` ` ) ) ; document . getElementById ( "btn-size-Mediana" ) . disabled = true ; document . getElementById ( "btn-size-Unica" ) . disabled = true ; document . getElementById ( "btn-size-Ninguna" ) . disabled = true ; } if ( XX == 4 ) { $ ( '#AddTalla' ) . append ( $ ( ` ` ) ) ; document . getElementById ( "btn-size-Grande" ) . disabled = true ; document . getElementById ( "btn-size-Unica" ) . disabled = true ; document . getElementById ( "btn-size-Ninguna" ) . disabled = true ; } if ( XX == 5 ) { $ ( '#AddTalla' ) . append ( $ ( ` ` ) ) ; document . getElementById ( "btn-size-Extra" ) . disabled = true ; document . getElementById ( "btn-size-Unica" ) . disabled = true ; document . getElementById ( "btn-size-Ninguna" ) . disabled = true ; } if ( XX == 6 ) { $ ( '#AddTalla' ) . append ( $ ( ` ` ) ) ; document . getElementById ( "btn-size-Ninguna" ) . disabled = true ; document . getElementById ( "btn-size-Unica" ) . disabled = true ; document . getElementById ( "btn-size-Pequeña") . d isabled  rue; document . getElementById ( "btn-size-Mediana" ) . disabled = true ; document . getElementById ( "btn-size-Grande" ) . disabled = true ; document . getElementById ( "btn-size-Extra" ) . disabled = true ; } }
dependiendo el parametro que le hemos enviado
dependiendo el parametro que le hemos enviado
//$('#AddTalla').html($(``));