2
I have a input
with class form_campos
, need to make the jQuery identify when the input
has the tag disabled
and change the class to form_disabled
.form_campos {
height: 31px;
width: 100%;
color: #484848;
align-self: flex-end;
padding: 5px;
outline: none;
border: 0 solid #484848;
border-bottom-width: 1px;
background: transparent;
border-radius: 0;
}
.form_campos:hover, .form_campos:focus {
border-color: #0091FF;
}
.form_disabled, .form_disabled:hover, .form_disabled:focus {
border-color: #D7D7D7;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input class="form_campos" name="nome" disabled>
At what point do you want to do this check? By loading the page, clicking a button, typing the text, etc?
– Randrade