Your question, your audience. Choose who sees your identity—and your question—with question security.
<div class="col-xs-6 mb20">
<label for class="field-label text-muted mb10">Enviado Por</label>
<div class="input-group">
<span class="input-group-addon">
<i class="fa fa-cog c-gray"></i>
</span>
<span class="validar">
<input type="text" name="enviado_por" id="enviado_por" class="form-control gui-input br-light light" placeholder="">
</span>
</div>
</div>
input[disabled] {
color: #444;
}
<?php // demo/temp_efuerte.php
/**
* https://www.experts-exchange.com/questions/28977971/Could-you-sugest-a-way-to-make-textbos-like-that-more-visible-just-when-it's-disabled.html
*
* http://www.w3schools.com/cssref/sel_disabled.asp
*/
error_reporting(E_ALL);
// CREATE A SMALL HTML SNIPPET USING HEREDOC NOTATION
$htm = <<<EOD
<style type="text/css">
input[type="text"] {
background: green;
}
input[type="text"]:disabled {
background: orange;
}
</style>
<input type="text" />
<input type="text" disabled />
EOD;
echo $htm;
code does not appear to have anything disabledTrue, but we can't see the effect of JavaScript. The input controls may get disabled conditionally, based on client actions.
$('#view').on('show.bs.modal', function () {
$('#view input').prop("disabled", true);
$('#view select.dropdown').attr('disabled', true);
$('#view .select select').prop('disabled',true)
});
input[disabled] {
color: #444!important;
}
input:disabled {
color: #444!important;
}
select select:disabled {
color: #444!important;
}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
What we need to find out is why it does not work in your particular case.
Step 1
Test to see if this sample works in your browser
Click the checkbox on the page and see if the top set of controls changes colour from yellow to red.