How to enable/disable element in Javascript

If u want to enable or disable any HTML element using javascript in asp.net/php u can use the following code, document.getElementById(‘nm’).disabled=’disabled’ ; and the below code will enable the element, document.getElementById(‘nm’).disabled=”;


Comments

One response to “How to enable/disable element in Javascript”

  1. Samarth Avatar
    Samarth

    Nice One

Leave a Reply

Your email address will not be published. Required fields are marked *