I have a form for uploading images. I\'d like to disable the submit button, until user selects an image to upload. I\'d like to do it with jQuery. Currently I have a JavaScr
Try
$('#my_uploader').change(function() { if($(this).val()) { $('#my_submit_button').attr('disabled', ''); } else { $('#my_submit_button').attr('disabled', 'disabled'); } });