Welcome Guest, Not a member yet? Register   Sign In
how to disable submit button when value is not null
#6

(11-09-2018, 04:37 AM)InsiteFX Wrote:
Code:
// jQuery
// Disabling a html button
$('#Button').prop('disabled', true);

// Enabling a html button
$('#Button').prop('disabled', false);

Code:
$('#mytable tr').each(function() {
   if (!this.rowIndex) return; // skip first row
   var customerId = this.cells[2].innerHTML;
   alert(customerId);
   if(customerId != 'Uploaded'){  // Im understand that innerHTML return text value
    $('#next').prop('disabled', true);
  }
   
});
My table display 5 rows . if 5 rows should be return as uploaded then next button will be enabled else disabled. need suggestion
Reply


Messages In This Thread
RE: how to disable submit button when value is not null - by kvanaraj - 11-16-2018, 10:10 PM



Theme © iAndrew 2016 - Forum software by © MyBB