jquery enable and disable attribute

enable and disable an element

Javascript

// disable something
$('#my-item').attr('disabled','disabled');

// enable it again
$('#my-item').removeAttr('disabled');

Demo

Page Views

This page has been viewed 35 times.

Search Code
Search Code by entering your search text above.
Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹