crop_rotate
Run
<!DOCTYPE html> <html> <head> <style> .input { height:30px; width:30%; } </style> </head> <body> <h1>JavaScript On Change</h1> <p id="paragraph">this input will take border after value changed</p> <input type="text" class="input" id="input" placeholder="Enter Username"> <script> let input = document.getElementById("input"); input.addEventListener('change',()=>{ input.style.border='1px solid #55efc4' }); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KIC5pbnB1dA0KIHsNCiAgIGhlaWdodDozMHB4Ow0KICAgd2lkdGg6MzAlOw0KIH0NCjwvc3R5bGU+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPiA6Oi13ZWJraXQtc2Nyb2xsYmFye3dpZHRoOjdweDtoZWlnaHQ6N3B4O306Oi13ZWJraXQtc2Nyb2xsYmFyLXRyYWNre2JhY2tncm91bmQ6I2ZmZjt9Ojotd2Via2l0LXNjcm9sbGJhci10aHVtYntib3JkZXItcmFkaXVzOjVweDtiYWNrZ3JvdW5kOiMyZjQ1ZmY7fTwvc3R5bGU+PC9oZWFkPg0KPGJvZHk+DQo8aDE+SmF2YVNjcmlwdCBPbiBDaGFuZ2U8L2gxPg0KPHAgaWQ9InBhcmFncmFwaCI+dGhpcyBpbnB1dCB3aWxsIHRha2UgYm9yZGVyIGFmdGVyIHZhbHVlIGNoYW5nZWQ8L3A+DQo8aW5wdXQgdHlwZT0idGV4dCIgY2xhc3M9ImlucHV0IiBpZD0iaW5wdXQiIHBsYWNlaG9sZGVyPSJFbnRlciBVc2VybmFtZSI+DQo8c2NyaXB0Pg0KbGV0IGlucHV0ID0gZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImlucHV0Iik7DQppbnB1dC5hZGRFdmVudExpc3RlbmVyKCdjaGFuZ2UnLCgpPT57DQogICBpbnB1dC5zdHlsZS5ib3JkZXI9JzFweCBzb2xpZCAjNTVlZmM0Jw0KfSk7DQo8L3NjcmlwdD4NCjwvYm9keT4NCjwvaHRtbD4=