Form objects and elements array, PHP Web Programming

Assignment Help:

<HTML>

<HEAD>

<TITLE>FORMS</TITLE>

<!-- This code allows to access the Form objects Elements Array //-->

<SCRIPT Language="JavaScript">

function Ver(form1)

{

v=form1.elements.length;

if (form1.elements[3].name=="Button1")

{

alert('First form name : '+document.forms[0].name);

alert('No. of Form elements of  ' +document.forms[0].name + ' = '+v);

}

else if (form1.elements[4].name=="Button2")

{

alert('Second form name : '+document.forms[1].name);

alert('No. of Form elements of  ' +document.forms[1].name + ' = '+v);

}

for(i=0;i<v;i++)

alert(form1.elements[i].name+  ' is at position '+i);

}

</SCRIPT>

</HEAD>

<BODY>

<FORM Name="Survey Form 1">

FIRST FORM: <i><b>Survey Form 1 </b></i><BR><BR>

First Name : <Input Type=Text Name="Text1" Value=""><BR><BR>

<Input Type="radio" Name="Radio1" Value=""> Fresher

<Input Type="radio" Name="Radio1" Value=""> Experienced<BR><BR>

<Input Type="Button" Name="Button1" Value="Click1" onClick="Ver(form)">

</FORM>

<FORM Name="Survey Form 2">

SECOND FORM: <i><b> Survey Form 2 </b></i><BR><BR> Name : <Input Type="Text" Name="Text2" Value=""> <BR><BR>

Password : <Input Type="Password" Name="Pass2" Value="">

<BR><BR>

<BR><BR>

<Input Type="CheckBox" Name="Check1" Value="" > Employed

<Input Type="CheckBox" Name="Check2" Value="" > Studying

<Input Type="Button" Name="Button2" Value="Click2"

onClick="Ver(form)">

</FORM>

</BODY>

</HTML>


Related Discussions:- Form objects and elements array

Special characters in html, You have seen that there are definite character...

You have seen that there are definite characters which have special meaning in HTML code. For instance, the " " characters delimit tags. If you wished to display s

Design a page in layout view, You will begin your first page whereas workin...

You will begin your first page whereas working in Dreamweaver's Layout view. You will lay out the page and afterward insert images & text. The page you developed in this section of

Wordpress plugin configuration as well as customizations, Wordpress Plugin ...

Wordpress Plugin Configuration as well as Customizations I want help configuring a plugin correctly (Social Review Engine Plugin) in my Wordpress site. The plugin is previously

Textarea element in a form, Set the element's dimensions using row & column...

Set the element's dimensions using row & column attributes in the textarea tag so the data entered is easily viewable.  The element of course requires an appropriately descriptive

We are seeking of joomla template conversion, We are seeking of Joomla Temp...

We are seeking of Joomla Template Conversion I need to convert the template into Joomla format. The deliverables here are- a) The ENTIRE template including all the pages w

We need a magento speed optimization help, We need a Magento Speed Optimiza...

We need a Magento Speed Optimization help In search of magento optimization for recently set up site, including sever cache, database management as well as front end optimizatio

We need help in website optimisation, We need help in Website Optimisation ...

We need help in Website Optimisation We want website Optimisation. Website currently running HMTL5 as well as compatible on mobile devices. We currently use Ad words but are dis

Support with custom wordpress theme, Support With Custom Wordpress Theme ...

Support With Custom Wordpress Theme I am seeking someone to help me customize a WordPress theme. I will design the theme and I am looking for someone to code it for me. Desir

Set cell properties, Cell height finds out the height of the space in a cel...

Cell height finds out the height of the space in a cell row. Notice the space about the Compass logo. You desire to remove the extra space amongst the logo and navigation buttons.

Prestashop custom url rewrite, Prestashop Custom URL rewrite- repost I w...

Prestashop Custom URL rewrite- repost I would like somewhat to automatically create custom URLs in my shop for guest wishlists using the wishlist owner's names I presently am us

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd