Payilagam: 11-March-2025
Topic: Javascript Methods
When we get an input element using document.getElementById() function it return the input element. We can extract the value in the input field using document.getElementById().value => It returns the the input box value.
element.querySelector() => it returns the first class tagged element within the division.
elemet.addEventListener('event_name', function function_name(e){}) => it adds the event to the specified element to do the function when the event is triggered on the particular element.
Top comments (0)