I have an input file with two classes.
<input type="file" class="upload upload-logo" />
<input type="file" class="upload upload-rules" />
<input type="file" class="upload upload-image" />
I want to create a generic code for all inputs. This works, but I have to create 1 block for each input:
$("input[class=upload-logo]").change(function() {
...
});
I've tested it like this, but it does not work:
$("input[class=upload]").change(function() {
...
});