0

[SOLVED]Why Input type button can not be disabled?

https://code.sololearn.com/W0tKnd6C6S2K/?ref=app

24th Jan 2021, 2:16 AM
NUR ISLAM
NUR ISLAM - avatar
3 odpowiedzi
+ 5
your submit button is actually disabled... but you does't "see" that it is, because you style it ^^ to style disabled button: #btn_style:disabled{ opacity:.2; }
24th Jan 2021, 2:31 AM
visph
visph - avatar
+ 2
It is already disabled my friend. Its seems like that is not disabled just because of hover css you had given in css. <input type="button" value="jdjd" disabled/> Try writing above line after your button code you will know what I wanna say. Use javascript to avoid color change while the button is disabled
24th Jan 2021, 2:32 AM
Ayush Kumar
Ayush Kumar - avatar
+ 2
Okay. Got it. THANKS
24th Jan 2021, 2:34 AM
NUR ISLAM
NUR ISLAM - avatar