+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>.

4/6/2019 3:24:29 PM

sbkrish

2 Answers

New Answer

+2

button { pointer-events: none; }

+1

Refer this code: <div class="foo"> <button>submit</button> </div> How to apply a disable effect for <div>?