I am trying to make a Javascript script that asks the user to enter details about a book, and then it generates an MLA style citation for it. The following is my HTML code.
after you select an input element by id with something like:
var fname = document.getElementById('fname');
you can see its current value through the value property. for example:
value
console.log(fname.value);