How to disable/enable a range control in HTML using script?

How to disable/enable a range control in HTML using script?

Am quite new to html/jquery/javascript. I have below script on a button click which disables the range control. I need to re-enable the range control if the button is clicked second time. So how can I check whether the range control is disabled or enabled?

Am quite new to html/jquery/javascript. I have below script on a button click which disables the range control. I need to re-enable the range control if the button is clicked second time. So how can I check whether the range control is disabled or enabled?

$(":button.range").click(function(){
    $(this).parent().parent().find("input[type='range']:visible:first").attr("disabled","disabed");
});


Angular 9 Tutorial: Learn to Build a CRUD Angular App Quickly

What's new in Bootstrap 5 and when Bootstrap 5 release date?

Brave, Chrome, Firefox, Opera or Edge: Which is Better and Faster?

How to Build Progressive Web Apps (PWA) using Angular 9

What is new features in Javascript ES2020 ECMAScript 2020

Building a minesweeper game using Javascript, HTML and CSS

In this article, you'll learn how to build minesweeper using JavaScript, HTML and CSS. I also used jQuery, a JavaScript library that is helpful for interacting with html. Whenever you see a function call with a leading dollar sign, that is jQuery at work

Material Login & Signup Form with CSS, HTML and JavaScript

How we can create a login and signup form with the material design using HTML CSS JavaScript? Solution: See this CSS Material Login & Signup Form With jQuery, Material Design Form.

Bar Graphs with Animation using JavaScript, HTML, & CSS

How we can create Bar Graphs With Animation using JavaScript, HTML, & CSS? Solution: JavaScript Animated Bar Graph. In Other Words, Bar Chart With Animation Effects.