How to check whether ant field's value is disabled?
in javascript

Member Avatar for diafol

ant field? Value = 'disabled' or form field is disabled? Please explain with an example. Maybe...

if(document.getElementById('me').disabled == true)
{
    console.log('disabled');    
}else{
    console.log('enabled');
}

But, Priti_P, could you not find this from a simple Google search?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.