Return Listbox label instead of Value

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default Return Listbox label instead of Value

    Hi there.

    I want to return the value of a list box's label rather than it's value, can
    this be done and if so how - the list box has static rather than dynamic
    content.?

    ie. <OPTION VALUE="2" SELECTED>United Kingdom</OPTION>

    I want to retrieve United Kingdom.

    Regards

    James Brown


    James Brown Guest

  2. Similar Questions and Discussions

    1. listbox to populate a listbox
      I am trying to use a listbox that I have setup using flash remoting call to a db. What I want to happen is when you click on a item in first the...
    2. How to bind WS call return to <mx:Label>
      I can't figure out how to bind data returned from a Web Service call as an array data type to <mx:Label> fields. My web service call returns an...
    3. click listbox and refresh another listbox
      Can someone guide me to a resource on building set of drill-down listboxes? Basically I want to have 4 listboxes. The first starts out with...
    4. Item label displays as "," when moving from listbox to listbox
      I have 2 listboxes: "lb_unselected" and "lb_selected". The first thing in the actions is loop through an array populating these two listboxes. ...
    5. now desparate! - 1st listbox contents disappears when 2nd listbox appears?
      On 23 Jun 2003 12:57:45 -0700, KathyBurke40@attbi.com (KathyB) wrote: Its been a while since you posted but I will answer anyway. The problem...
  3. #2

    Default Re: Return Listbox label instead of Value

    First off... Do you feel good?

    Why don't you just use United Kingdom as the value and label?

    Drew

    "James Brown" <jb@jaybee.com> wrote in message
    news:d3djga$19s$1@forums.macromedia.com...
    > Hi there.
    >
    > I want to return the value of a list box's label rather than it's value,
    > can
    > this be done and if so how - the list box has static rather than dynamic
    > content.?
    >
    > ie. <OPTION VALUE="2" SELECTED>United Kingdom</OPTION>
    >
    > I want to retrieve United Kingdom.
    >
    > Regards
    >
    > James Brown
    >
    >

    Drew Guest

  4. #3

    Default Re: Return Listbox label instead of Value

    As Drew said, why do you want to retrieve the label?

    If you need to have it as you have it now, then lookup the value in a
    database to find the label.


    --
    Gareth - TMM Dreamweaver
    [url]http://www.dreamweavermxsupport.com/[/url]
    [url]http://www.garethdp.com/[/url]

    PHP Login Suite V2 - 34 Server Behaviors to build a complete Login system.
    [url]http://www.phploginsuite.co.uk/[/url]

    Co-Author: Dreamweaver MX: Instant Troubleshooter - Apress
    Co-Author: Practical Intranet Development - Apress
    Co-Author: Dreamweaver MX: Advanced PHP Web Development - Apress
    Co-Author: Dreamweaver MX: PHP Web Development - Wrox


    gareth Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139