Greetings, I have the following situation:
I have a if that as a target I want to mark a radio button , I have tried with scripts but it does not work for me.
<div class="funkyradio">
<?php
$sql = "SELECT * FROM permiso WHERE user = '" . $object['usuario'] . "' AND fk_actions = '" . $objetoA1['id'] . "';";
$query = $cone->sqlSeleccion($sql);
if (mysqli_num_rows($queryA2) == 1) {
?>
<script>
$("#radioA").prop("checked", true);
</script>
<?php
} else {
?>
<script>
$("#radioB").prop("checked", true);
</script>
<?php
}
?>
<div class="funkyradio-success">
<input type="radio" name="radio" id="radioA" />
<label for="radioA">Aprobado</label>
</div>
<div class="funkyradio-danger">
<input type="radio" name="radio" id="radioB" />
<label for="radioB">Denegado</label>
</div>
Thanks:)