mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2024-11-25 11:04:09 +03:00
js fix
This commit is contained in:
parent
3e17926811
commit
dd2b41c11f
|
@ -24,12 +24,15 @@ $(function (){
|
|||
}
|
||||
});
|
||||
|
||||
$(document).on("keyup", ".form-control", function() {
|
||||
$(document).on("keyup change", ".form-control", function() {
|
||||
if ($(this).val() !== "") {
|
||||
$(this).removeClass("empty");
|
||||
} else {
|
||||
$(this).addClass("empty");
|
||||
}
|
||||
});
|
||||
$(document).on("keydown", ".form-control", function() {
|
||||
$(this).removeClass("empty");
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user