How to utilize html inputs in a JavaScript function call

Situation: I am working on and ID Creator for my second repl I have written the function and is functional I have also added input field which are also functional but i need to get the iput as parameters for the function

Welcome to Replit Ask @Js-Junior ! :slight_smile:

To get the provided input from the input element, you need to use the value property.

const element = document.getElementById("input-element-name-here").value;
1 Like

Thanks i will try that

1 Like