+ 3

Hey Everyone i just want to know can we make enable an input tag in JS if it disable in Html.

10th Oct 2021, 1:23 AM
Kamran Chohan
Kamran Chohan - avatar
15 Respostas
10th Oct 2021, 7:15 AM
zexu knub
zexu knub - avatar
+ 2
Kamran Hi kamran, you can do almost every even driven task with the help of evenlisteners in JavaScript. I'll surely help if you provide your code but i suggest you should learn the DOM manipulation & eventlisteners in details to have a better understanding on this.
10th Oct 2021, 2:13 AM
zexu knub
zexu knub - avatar
+ 1
Yes you can. Here's how: https://www.w3schools.com/jsref/prop_text_disabled.asp Next time, search on Google before asking.
10th Oct 2021, 1:27 AM
Aleksei Radchenkov
Aleksei Radchenkov - avatar
+ 1
Yes, you can do more than that using DOM manipulation.
10th Oct 2021, 1:39 AM
zexu knub
zexu knub - avatar
0
Thanks guys for your answers but i want to make a checkbox when iched the checkbox an input field is disbled is that possible if yes then plzz tell how.
10th Oct 2021, 1:44 AM
Kamran Chohan
Kamran Chohan - avatar
0
Zexu Knub thanks bro for your suggestion but bro i dont have a proper code to send you bro for practice i just want to know how is this possible if you know just snd me short example of code if you can otherwise no problem and thnks again😊
10th Oct 2021, 5:36 AM
Kamran Chohan
Kamran Chohan - avatar
0
Zexu Knub bro thank u so much for helping me bro you are such a nice guy â˜ș
10th Oct 2021, 7:37 AM
Kamran Chohan
Kamran Chohan - avatar
0
Kamran No Problem, Good luck!
10th Oct 2021, 7:44 AM
zexu knub
zexu knub - avatar
0
Kamran Yes, i do
10th Oct 2021, 10:24 AM
zexu knub
zexu knub - avatar
0
Kamran i don't mind but i don't use WA that often. You can have my telegram if you use it.
10th Oct 2021, 10:34 AM
zexu knub
zexu knub - avatar
0
Kamran Like i said I've my accounts everywhere but the only social media app I'm using lately are Telegram, Discord & SoloLearn itself.
10th Oct 2021, 11:22 AM
zexu knub
zexu knub - avatar
0
Hmm i understand ok bro is that possible to change the background of anything using checkbox when i checked the bckfround change hows its done just give me a little example like above.
10th Oct 2021, 11:51 AM
Kamran Chohan
Kamran Chohan - avatar
0
Kamran it's no use, Watching tutorial or taking code from someone else only works if you try to figure out the logic & concept. In programming there ain't always one way of doing things as from the your profile we can see that you have completed the JavaScript course just open the 'DOM & Events' module & practice that. Hope you understand what I'm saying here.
10th Oct 2021, 12:20 PM
zexu knub
zexu knub - avatar
0
Ok bro thanks for sugesstion god bless you buddy
10th Oct 2021, 12:28 PM
Kamran Chohan
Kamran Chohan - avatar
0
Kamran Sure, good luck!
10th Oct 2021, 12:40 PM
zexu knub
zexu knub - avatar