Anjanesh Lekshminarayananjavascript.co.in·Feb 17, 2024Capture Option data on Select ChangeSometimes we want to 'listen' to an event change of the select element. Especially when the option is changed - and get the newly selected value and store it elsewhere. For this we use onchange on the select element and not on the option element. The...87 readsHTML
Ken Udehkenudeh.hashnode.dev·Jul 6, 2023Onchange vs OninputOnchange and Oninput are two HTML attributes that are often confused with each other. Both are used within HTML tags or programmatically in JavaScript to specify the event handler code that should run when a certain event is triggered. This article w...655 readsevents