Results 1 to 4 of 4

Thread: form validation with jquery

  1. #1
    Join Date
    Oct 2011
    Location
    London
    Posts
    41
    Thanks
    19
    Thanked 1 Time in 1 Post

    Question form validation with jquery

    hi guys i am trying to get some javascript to check if all inputs are filled in here is my form
    PHP Code:
    <legend><a id="myHeader1" href="javascript:showonlyone('newboxes1');" >
    <
    fieldset style="width:250px;">Who and Where?</a></legend>
    <
    div name="newboxes" id="newboxes1" style="display: none;">
      
        <
    form name="vrv" method="post" action="vevx.php">
            
                <
    fieldset style="width:210px;">
                   <
    legend>Engineers Name:-</legend>
                 <
    input name="engineer" type="text" class="text"/>
                </
    fieldset>
                <
    fieldset style="width:210px;">
                 <
    legend>Site Address:-</legend>
                 <
    textarea rows="6" cols="15" name="site" /></textarea>
                </
    fieldset>

    </
    div>       
    </
    fieldset
    i have 5 forms on the same page but only one submit button. Each form is hidden till href="javascript:showonlyone('newboxes1');" i want to put a tick or word next to the Who and Where?(title) to indicate this form has a entry in each field

    PS I dont understand javascript at all so PLEASE keep it simple

  2. #2
    Join Date
    Jan 2008
    Posts
    441
    Thanks
    67
    Thanked 4 Times in 4 Posts

    Default

    take a look at this http://bit.ly/AuZSwb

  3. #3
    Join Date
    Oct 2011
    Location
    London
    Posts
    41
    Thanks
    19
    Thanked 1 Time in 1 Post

    Default

    This is great thanks but too complicated if i have say 5 fields once all fields have something in them it will say complete without having to click submit
    Last edited by TwitterRooms; 01-29-2012 at 09:29 PM.

  4. #4
    Join Date
    Jan 2011
    Location
    Southeastern CT
    Posts
    594
    Thanks
    43
    Thanked 28 Times in 28 Posts

    Default

    Thanks,

    Bud

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •