How do you check the jquery list?



  • There are two lists and a button. How to spell out the conditions that if the second list has its properties disabledThen the button needs to be removed. disabled?

    How to put the buttons on the attribut, I figured it out. It's like:

    $('#btn').attr('disabled', true);
    

    How do you get your properties and check the list?



  • Get the Atribut value.

    var is_disabled = $('#btn').attr('disabled');
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2