WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #20855, comment 11


Ignore:
Timestamp:
09/17/2012 08:52:02 PM (6 years ago)
Author:
nacin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #20855, comment 11

    initial v1  
    11.prop() needs to be used (jQuery 1.6+), rather than .attr(). Something like this would work:
    22{{{
    3 $( '#upload-form #submit' ).prop('disabled', '' === $('#upload').val() );
     3$('#upload-form #submit').prop('disabled', '' === $('#upload').val() );
    44}}}