Let’s demonstrate an example. Here is a text box where you need to enter your name. By clicking on the button it will show an alert with greeting Hello + YourName + ‘!’. The value from text input takes using jQuery by name.
More details here https://yarkul.com/jquery-how-to-get-...