I have the following HTML:
<label class="fileinput-button">
<span>add file...</span>
<input type="file" name="file" disabled>
</label>
I want to disable the input element (button) using the label‘s class name (without the button’s ID).
$('label.fileinput-button') ... button ... disable.
How can I do this?
Note:
.prop()is available since version 1.6