Beginner question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • tvr

    Beginner question

    Hi,

    Is there any possible way to submit only a selected fields in a form
    using javascript?

    Suppose I have 20 dropdown menus and users select values from
    only 2 menus. I want to submit only these two values but
    not the rest. Is this possible?

    Thanks
    tvr
  • Michael Winter

    #2
    Re: Beginner question

    "tvr" wrote on 10/11/2003:
    [color=blue]
    > Hi,
    >
    > Is there any possible way to submit only a selected fields in a form
    > using javascript?
    >
    > Suppose I have 20 dropdown menus and users select values from
    > only 2 menus. I want to submit only these two values but
    > not the rest. Is this possible?
    >
    > Thanks
    > tvr[/color]

    If you can distinguish between a menu with a selection and one without
    (a 'None' option, for example), then yes. For controls to be
    submitted, they have to be successful. To be successful, one of the
    conditions is that it is enabled. Just check all the fields and set
    the 'disabled' property to true for those that haven't been
    'selected'.

    Mike

    --
    Michael Winter
    M.Winter@[no-spam]blueyonder.co.u k (remove [no-spam] to reply)


    Comment

    Working...