What is the best way to enable or disable an input with jQuery?

Can someone please let me know the best way to enable or disable an input with jQuery?

Comments

  • $("#inputID").prop('disabled', true);
    $("#inputID").prop('disabled', false);
    
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion