Initial Smartproc
This commit is contained in:
13
public/js/main.js
Normal file
13
public/js/main.js
Normal file
@ -0,0 +1,13 @@
|
||||
$(function() {
|
||||
'use strict';
|
||||
|
||||
$('.form-control').on('input', function() {
|
||||
var $field = $(this).closest('.form-group');
|
||||
if (this.value) {
|
||||
$field.addClass('field--not-empty');
|
||||
} else {
|
||||
$field.removeClass('field--not-empty');
|
||||
}
|
||||
});
|
||||
|
||||
});
|
Reference in New Issue
Block a user