I built a small jQuery script that adds a class for every input field I write in. However, it only works in all input fields after something is written in the first input field, see dev.resihop.nu , for example.
The code:
$('.field').keydown(function () {
if ($('.field').val() !== 'Ort, gata eller kommun') {
$(this).addClass("focus");
};
});
source
share