How to disable a button without using disabled attribute? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to disable a button without using disabled attribute?

Button is placed inside a <div>. Need to apply disable functionality for <div> instead of <button>.

6th Apr 2019, 3:24 PM
sbkrish
sbkrish - avatar
1 Answer
+ 1
Refer this code: <div class="foo"> <button>submit</button> </div> How to apply a disable effect for <div>?
6th Apr 2019, 3:57 PM
sbkrish
sbkrish - avatar