How do I get the value of a checkbox to go through a parameter

0

I would like to know how I get the status of a checkbox whether it is enabled or not to pass by parameter to the controller

Iamdoingthis,mosteverytimecomes"True"

    
asked by anonymous 04.01.2018 / 14:59

1 answer

0

If the idea is to check if check is checked, the query should be done as below:

var checkado = $("#chkAguardandoEnvio").prop("checked");

If you know whether check is enabled for dialup, use this one:

var habilitado = $("#chkAguardandoEnvio").attr("disabled") != undefined;
    
04.01.2018 / 15:22