Wingman
  • JNTUH
    Course Structure

    Detailed course structure for each branch and semister

    Syllabus

    Syllabus for each semester subjects

    Mids

    Previous Mid Exam Question Papers

    Question Papers

    Previous Semesters Final Exam Question Papers

  • Engineering Notes & Labs
  • .NET
    .NET Articles

    Read all .NET articles

    .NET Multiple Choice Questions

    Read all .NET Interview Objective Questions

    .NET Interview Question & Answers

    Read all .NET Interview Questions

  • C Programming
  • Free Worksheets
  1. Home
  2. .Net Articles
  3. JQuery

How to enable/disable input in jQuery?

Disable input in jQuery:

$("#txtName").prop("disabled", true);

Enable input in jQuery:

$("#txtName").prop("disabled", false);

jQuery Demo: https://jsbin.com/noliqozigi/1/edit?html,output

  • Created
    Jan 16, 2020
  • Updated
    Nov 03, 2020
  • Views
    858
Related Articles
.prop() vs .attr() in jquery
How to get the selected text of a dropdown item using jQuery?
How do I check whether a checkbox checked in jQuery?
Setting “checked” for a checkbox in jQuery?
How to check if an element exists in jQuery?
Set DropDownList value based on text/value in jQuery
Get selected text/value from DropDownList (or) Select in jQuery
Get selected index from DropDownList (or) Select in jQuery
Clear items from DropDownList (or) Select in jQuery.
How to replace string in JQuery?
Image

© 2023 Vikram Learning

JNTUH
  • Course Structure
  • Syllabus
  • Mids
  • Question Papers
Engineering
  • Notes
  • Labs & Viva-Voce
  • Lab Programs
.Net
  • All
  • Articles
  • Multiple Choice Questions
  • Question & Answers
Free Worksheets
  • Lower Kindergarten (LKG) Worksheets
  • Upper Kindergarten (UKG) Worksheets
  • Grade 1 Worksheets - Coming soon
  • Grade 2 Worksheets - Coming soon