Good people.
I am trying to fill in an input itself change its background-color
, this would have to be done dynamically, without having to click on a button or reload the page.
I tried this, but it does not work:
function ActiveInputs() {
var gg = $('#search-form').find('input:text,select, textarea').val();
$(gg).on('blur', function () {
if ($(this).val() != '') {
$(this).css('background-color', 'red');
}
});
Does someone lend me a hand?