Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

jQuery - add disable attribute

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

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

 

Please log in or register to response this reference.

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