HTML DOM id Property
Complete Hidden Object Reference
Definition and Usage
The id property sets or returns the id of a hidden input field.
Syntax
Example
The following example gets the id of the hidden input field:
<html>
<body>
<form>
<input type="hidden" id="hidden1" />
</form>
<p>The id of the hidden field is:
<script type="text/javascript">
x=document.getElementById('hidden1');
document.write(x.id);
</script></p>
</body>
</html>
|
Try-It-Yourself Demos
Get the id of
the hidden input field
Complete Hidden Object Reference
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|