I have a form where all the input fields has a 'required' and 'pattern' argument.I would like to show a small green picture on the right of the inputbox, whenever the input is not invalid, to show the user he has filled it correctly. Im wondering if its possible to do without javascript/jquery and instead with pure css/sass?I was thinking something like\[code\]if input:invalid{ .divonrightofinputbox{ background:url('green.png'); }}else{ .divonrightofinputbox{ display:none; }}\[/code\]Is this possible with sass and if so, how? Thanks in advance for any help!