addeventlistener js select item
selectId.addEventListener("change", function() {
});
addeventlistener js select item
selectId.addEventListener("change", function() {
});
mdn select event
function logSelection(event) {
const log = document.getElementById('log');
const selection = event.target.value.substring(event.target.selectionStart, event.target.selectionEnd);
log.textContent = `You selected: ${selection}`;
}
const input = document.querySelector('input');
input.addEventListener('select', logSelection);
mdn select event
<input value="Try selecting some text in this element.">
<p id="log"></p>
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us