mirror of
https://github.com/mdbootstrap/mdb-ui-kit.git
synced 2025-07-12 01:02:19 +03:00
js
This commit is contained in:
parent
94f227f3e9
commit
3eec1e624d
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright 2014+, Federico Zivolo, LICENSE at https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE.md */
|
/* globals ripples */
|
||||||
|
|
||||||
$(function (){
|
$(function (){
|
||||||
|
|
||||||
|
@ -24,12 +24,14 @@ $(function (){
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
$(document).on("keyup", ".form-control", function() {
|
$(document).on("keyup change", ".form-control", function() {
|
||||||
if ($(this).val() !== "") {
|
if ($(this).val() !== "") {
|
||||||
$(this).removeClass("empty");
|
$(this).removeClass("empty");
|
||||||
} else {
|
} else {
|
||||||
$(this).addClass("empty");
|
$(this).addClass("empty");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$(document).on("keydown", ".form-control", function() {
|
||||||
|
$(this).removeClass("empty");
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user