Mi codigo:
Código PHP:
<script type="text/javascript">
$(document).ready(function(){
document.getElementById("categoria-select").onchange = function()
{
var value = document.getElementById("categoria-select").value;
document.getElementById("private-post").checked = value == "15";
document.getElementById("private-post").disabled = true;
};
});
</script>
Código PHP:
document.getElementById("private-post").checked = value == "29";
Código PHP:
<script type="text/javascript">
$(document).ready(function(){
document.getElementById("categoria-select").onchange = function()
{
var value = document.getElementById("categoria-select").value;
document.getElementById("private-post").checked = value == "15";
document.getElementById("private-post").checked = value == "29";
document.getElementById("private-post").disabled = true;
};
});
</script>
ojala hayan entendido y puedan ayudarme gracias