title: How to set Field value using id in javascript?
body: <p>I want to set an HTML field's value using JavaScript when <code>onclick</code> event is raised by clicking a button/hyperlink.. I Googled and found many articles using the <code>name</code> attribute, but I want to set the value using the field's <code>id</code> only.</p>