Posted in jquery
3
12:12 am, December 2, 2019

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');

View Statistics
This Week
8
This Month
22
This Year
0

No Items Found.

Add Comment
Type in a Nick Name here
 
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.

Join me on Substack if you want me to send you a collection of the things i have done or found or read for the week. Or follow me on twitter if you prefer, i dont post much but i probably should!

❤👩‍💻🕹

Random Quote
Many of life's failures are people who did not realize how close they were to success when they gave up.
Thomas A. Edison