Селектор CSS для получения отключенного поля ввода
/* select all disabled input field*/
input:disabled {
background: #f00;
}
CodePadding
/* select all disabled input field*/
input:disabled {
background: #f00;
}
pointer-events:none;
<input type="text" name="username" value="admin" tabindex="-1" >
<style type="text/css">
input[name=username] {
pointer-events: none;
}
</style>
<input type="text" name="username" value="admin" >
<style type="text/css">
input[name=username] {
disabled: true; /* Does not work */
}
</style>
<input type="text" name="username" value="admin" >
<style type="text/css">
input[name=username] {
pointer-events: none;
}
</style>
input diasbled