<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Form Fields Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/form-fields/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/form-fields/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Wed, 13 Apr 2022 16:30:45 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>Accessing Form Fields in JavaScript</title>
		<link>https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/</link>
					<comments>https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/#respond</comments>
		
		<dc:creator><![CDATA[rajeshkumar]]></dc:creator>
		<pubDate>Fri, 13 Aug 2021 12:34:39 +0000</pubDate>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Accessing Form]]></category>
		<category><![CDATA[Form Fields]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Method]]></category>
		<guid isPermaLink="false">https://www.scmgalaxy.com/tutorials/?p=7927</guid>

					<description><![CDATA[<p>Accessing Form JavaScript provides various ways of accessing form:- document.forms[index_number] – It returns collection of form in the documents. document.forms[“name_attribute_value”] [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/">Accessing Form Fields in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h1 class="wp-block-heading"><strong>Accessing Form</strong></h1>



<p class="wp-block-paragraph">JavaScript provides various ways of accessing form:-</p>



<ul class="wp-block-list"><li>document.forms[index_number] – It returns collection of form in the documents.</li></ul>



<ul class="wp-block-list"><li>document.forms[“name_attribute_value”] – we can use name attribute of the form.</li></ul>



<ul class="wp-block-list"><li>document.name_attribute_value – we can use name attribute of the form with dot as well.</li></ul>



<ul class="wp-block-list"><li>getElementById(“ID”) – If form as an unique id we can use it.</li></ul>



<h1 class="wp-block-heading"><strong>Accessing Form Fields</strong></h1>



<p class="wp-block-paragraph">If form fields have unique ID then it is possible to access them using the getElementById( ) method. However, There are some other ways: &#8211;</p>



<ul class="wp-block-list"><li>elements[ ] – It contains collection of form fields.</li></ul>



<p class="wp-block-paragraph">     <strong>Syntax: &#8211; </strong></p>



<p class="wp-block-paragraph">               document.form_name.elements[index_number];<br>               document.form_name.elements[“name_attribute_value”];<br>               document.form_name.name_attribute_value;<br>               document.form_name.ID_attribute_value;</p>



<ul class="wp-block-list"><li>getElementsByName(“field_name”) – This method is also used to access form field.</li></ul>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/">Accessing Form Fields in JavaScript</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/accessing-form-fields-in-javascript/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
