jQuery - add disable attribute

0 votes
201 views
added Aug 16, 2018 in jQuery by LC Marshal Captain (25,790 points)
$('#units-available').change(function(){
  var disabledOp = $('#units-available option:eq(0)');

  $('#unit-selection').show();
  $(disabledOp).attr('disabled', true);
});

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...