User Profile

Collapse

Profile Sidebar

Collapse
gingawarrior
gingawarrior
Last Activity: Mar 28 '08, 11:04 AM
Joined: Feb 22 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Aha, sussed - had some issues with the way my relayted DIV was rendering meaning the JS fell over because it couldn't find it. Sorted now.

    However, I'm still looking for some help on how to evaluate radio button values...
    I'm currently doing the following in JS:

    Code:
    var elementRef = document.getElementsByName(aryItems[i]);
        //var elementRef = document.getElementById(elementRef1);
        if ( elementRef
    ...
    See more | Go to post

    Leave a comment:


  • Yeah, I've tried that and it doesn't seem to do it either - something odd definitely going on.
    What I'm trying to achieve is as follows:
    - on form submit, check all fields for entry
    - if field is empty then pop up alert and also show hidden * next to field
    - if field has a value of 999 do the same
    - otherwise (all fields completed) submit the form
    Don't know what I've done that means it doesn't work - do...
    See more | Go to post

    Leave a comment:


  • JS issue: why can't I evaluate if a form item is null/empty?

    Hi All,
    I've written some code to act as a validator for a set of form fields - it accepts a string of '~' delimited item names and then loops through to evaluate if they are either empty or =='999' (default not selected for a dropdown list).

    So far so good...however, although the value=='999' bit works, those fields that post a null or empty value (radio buttons, textareas) don't seem to get picked up.

    Any ideas...
    See more | Go to post
No activity results to display
Show More
Working...