HTML:
<input type="text" name="name" id="uniqueID" value="value" />
JS:
var nameValue = document.getElementById("uniqueID").value;
More Related Contents:
- Is there any way keep part of my code in a seperate document? [closed]
- What is wrong with this basic Javascript code? [closed]
- Real-Time Calculation in Javascript: Based on text field and fixed price rate of an item
- How can I get the data-id attribute?
- How can you programmatically tell an HTML SELECT to drop down (for example, due to mouseover)?
- Convert json data to a html table [closed]
- HTML5 Local storage vs. Session storage
- How to submit an HTML form without redirection
- Stop an input field in a form from being submitted
- How to show a confirm message before delete?
- How do you access the contents of an SVG file in an element?
- Can I apply CSS to the elements within an iframe?
- shorthand http:// as // for script and link tags? anyone see / use this before?
- Doing links like Twitter, Hash-Bang #! URL’s [duplicate]
- gapless looping audio html5
- Spam Prevention/Reduction – Contact Form?
- Finding number of lines in an html textarea
- How to access data of uploaded JSON file?
- Impossible to hide navigation bars in Safari iOS 7 for iPhone/iPod touch
- Combine two selectors with one jQuery object
- querySelectorAll.style does not work
- fade effect using javascript no jquery?
- how to auto select an input field and the text in it on page load
- Generating sound on the fly with javascript/html5
- Disabling enter key for form
- Load HTML template with JavaScript
- How can I capture an image via the user’s webcam using getUserMedia?
- Call Library function from html with google.script.run
- Are dynamically inserted tags meant to work?
- Display Spreadsheet Data to HTML Table