Use :input in JS to support multiple input types if customised.