Changing text in a selection drop down

Hi all,
Does anyone know how to change the text(not value) that is displayed in a single line selection drop down box from a javascript function.?
ie.
<select name="companyMenu" size="1" >
<option value=" ">Want to change this text</option>
</select>
regards
JK

its ok, found the answer.
simply place an id in the option tag and refer to the innerText.
ie
<select name="companyMenu" size="1" onchange=whatever(this.form);>
<option id="commonText" value="">Want to change this text</option>
and for the function
function whatever(f) {
     commonText.innerText = "happy";
which replaces "Want to change this text" with "happy"
cheers
JK

Similar Messages

  • Changing the size of a drop down list

    Hi Everyone,
    Is there anyway to change the size of a drop down list?  For example, our customer would like to make the drop down list for the Ship-To field on the logistics tab of the sales orders longer.  Currently, they cannot see the full name when they scroll through it.  Is this possible?  Depending on what Customer Code they enter, the field size appears to change.
    Thank you in advance for your help.
    Amanda

    I am using Tahoma size 10 as well. 
    Is the drop down size somehow related to the size of the first few records?  So, if those are shorter than those at the end, perhaps it doesn't adjust for the size of the bottom records.  For example, in our customer's database here's a sampling of what they have entered and the order:
    Wal-Mart 6124
    Wal-Mart 6125
    Wal-Mart 6126
    Wal-Mart 7001
    Wal-Mart Supercenter 1111
    Wal-Mart Supercenter 2094
    Wal-Mart Supercenter 3475
    The drop down box is large enough to see the Wal-Mart 6124, etc. but not large enough to see the Wal-Mart Supercenter ones at the bottom of the list (keep in mind there are over 100 ship-to's for this Business Parnter).  Does it maybe only look at the first fifty records or something like that?
    Thanks again,
    Amanda

  • Wrapping text in the navigation drop down menu

    Help! Is there a way to wrap text in the navigation drop down menu. Some of the text is too long and sits outside of the drop down box. Is there code that I can insert in the below example or would this need to be specified in the css stylesheet that is attached? If this needs to go in the css stylesheet, then what would the code be for that?
    Thank you!
    <!-- nav//-->
    <span class="preload1"></span>
    <span class="preload2"></span>
    <ul id="nav">
        <li class="top"><a href="#nogo1" class="top_link"><span>Home</span></a></li>
         <li class="top"><a href="#nogo30" id="shop" class="top_link"><span class="down">Title</span></a>
            <ul class="sub">
                          <li><a href="#nogo36">Title</a></li>
                <li><a href="#nogo37">Title</a></li>
            </ul>
        </li>
        <li class="top"><a href="#nogo57" id="privacy" class="top_link"><span>Title</span></a>
            <ul class="sub">
            <li><a href="#nogo31">Title</a></li>
                       <li><a href="#nogo3" class="fly">Title</a>
                        <ul>
                            <li><a href="#nogo4">Title</a></li>
                        </ul>
                </li>
    <li class="mid"><a href="#nogo7" class="fly">Title</a>
                        <ul>
                            <li><a href="#nogo15">Title</a></li>
                  </ul>
                </li>
                 <li><a href="#nogo31">Title</a></li>
                 <li><a href="#nogo31">Title</a></li>
                   <li class="mid"><a href="#nogo7" class="fly">Title</a>
                        <ul>
                            <li><a href="#nogo8">Title</a></li>
                            <li><a href="#nogo9">Title</a></li>
                            <li><a href="#nogo10">Title</a></li>
                     </ul>
                </li>
          </ul>
    </li>

    Is there a way to actually wrap the text and keep the box it sits in the same size?
    Height is determined by content & end-user's default text size.
    Look at the Adobe Forum top menu bar.  Mouse over Store > sub-menus.  When text wraps to more than one line, the sub-menu adjusts to content.  If you increase text size in browser it's more obvious.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • How to create a multi select drop down filed in crm 7.0

    Hi All,
            I need to create a multi select drop down field in crm web ui where one field have 7 value and we can select more than one value at a time.I have no idea how to create a multi select drop down field in web ui.
    Please help.....

    Hi vishwas
    Please follow the thread where a similar requirement was posted.
    Re: Drop-down list box / pick-list with multiple selections at a time
    Here the suggestions say that a workaround could be to associate a table view to the field.
    Regards,
    Nisha

  • I recently updated to the newest version of Flash (17.0.0.134) and I have a MacBook Air, running OSX. Ever since the update I can no longer select drop down menus or get Netflix to run properly. Has anyone else had this issue/know how to resolve it?

    I recently updated to the newest version of Flash (17.0.0.134) and I have a MacBook Air, running OS X and I have Safari version 8.0.4.  Ever since the update I can no longer select drop down menus or get Netflix to run properly. Has anyone else had this issue/know how to resolve it?

    1. System Preferences > Flash Player > Advanced > Delete All
        Press “Delete All” button under “Browsing Data and Settings”.
    2. Install Adobe Flash Player.
        System Preferences > Flash Player > Updates
        Press the “Check Now” button.
        http://get.adobe.com/flashplayer/
        Download it and quit Safari from Safari menu in the menu bar.
        Follow the prompts to install Adobe Flash Player.

  • How can i programmatically add a text in a combobox drop down menu ?

    How can i programmatically add a text in a combobox drop down menu ? Can it be possible using any property node?

    You've posted to the wrong forum. Please post to the LabVIEW board.

  • How  to do, multi select drop down in struts

    Hi, I need an example of multi select drop down in struts.
    i m able to select multiple options by giving multiple="true" , but how can i set all these values to actionForm property to save in to the database.
    Thanks
    Naren.

    Hi, I need an example of multi select drop down in
    struts.
    i m able to select multiple options by giving
    multiple="true" , but how can i set all these values
    to actionForm property to save in to the database.
    Thanks
    Naren.In your action you need to call getParameterValues, which (if everything goes according to plan) will give you a String array of the values that were selected.
    Good Luck
    Lee

  • Multi-select drop-down

    Hi,
    I'm using Jdevelopre 11112 and JHS 11.1.1.2.29,
    I need to have a multi select Drop-down.
    is there a way to have multi-selection choise in drop-down?
    thanx in advance

    No, this is no standard JHeadstart functionality.
    You can built it manually in a generated page (ask JDeveloper forum for help if you don't know how to do this), and then use JHeadstart custom templates to keep your page generatable.
    Steven Davelaar,
    JHeadstart team.

  • To develop cascading select drop down box from web service

    Hi,
    I have two select drop downs one is "STATE" and other is "CITY". I am fetching the values for state drop down from a web service method "return"(*a list is returned from that method*) . Now i have a method in a webservice which accepts a string type argument(state) which returns the cities corresponding to that state. I made another drop down from "return"( list is returned from that method) of this second method which gives me city.
    Now what i want to do is on selecting a state the webservice method should get executed passing "selected state" as a parameter to my web service function and that return will populate my second drop down list.
    Can partial trigger help me in this?
    If partial trigger is helpful,how will i pass an argument to my second method which is returning me cities?
    OR
    Is there some other way to do it?

    Hi,
    check this one: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/70-dependent-listboxes-using-ws-286107.pdf
    Frank

  • How can I change the order in the drop down list of the teamviewer

    HI all
    If I can change the order in the drop down list of the teamviewer?
    example the default is "Direct Reports",I want to change it to the "Employees in Organizational Structure".
    Best Regards

    Cui,
    It is based on OADP. goto SPRo - Integration with other mySAP.com components - business packages/functional packages- manager self services()-Object and data provider-
    Thanks
    Bala Duvvuri

  • Auto Populate Drop Down and Text Fields from Other Drop Down and Text Fields

    Hi everyone
    I'm trying to pre populate a "Proposed Employment Status" drop down field with the selection from the "Current Employment Status" drop down field and allowing users to select another option if the proposed employment has changed. If it hasn't it would just remain as populated by the Current Employment Status" entry.
    I'm also trying to do this with text fields eg "Proposed Position Title" is populated with "Current Position Title". If the title changes in the bew employment arrangements users can enter it over the Proposed Position Title that is presented when the Current Position Title is entered.
    I can get it to work if the drop down or text field names are the same, but this doesnt solve the problem.
    Any ideas
    Regards,
    Michael

    Java is a full featured-language and you shouldn't have any problem doing the mathematics, etc.
    As far as the rest, Studio Creator is a relatively easy way to create the user interface that you describe. If supports drop-down selectable lists and standard form capabilities. A Web Application architecture would appear to be ideally suited to what you describe, and this is supported by SC. Be aware that this would require a server to serve the application to the client computer.
    If the server is a problem you could consider an applet that would be downloaded from a website, and then run entirely on the client computer. But the first approach is better.

  • Font Selection - Drop Down Menu Selection

    Hello All,
    I have a general question about the FONT selection in the menu bar in iBA that has been puzzling me.
    Sometimes when I select a font within a text box and move over to the Drop Down menu within iBA the default view is the top six most recently used fonts.
    At other times the font selection moves down the long list of fonts alphabetically — say to Helvetica.
    I have being playing around with the key combination keys to see if holding command key or a combination will change this.
    By holding down the ALT / Option key turns the FONT PREVIEW view OFF so the menu is more compressed and maybe faster to load.
    Any thoughts on this would be great. I would really like to be able to jump to my top six recently used fonts by holding down a hot key rather than at random times as it seems to me right now.
    Any view?
    Regards,
    Nigel
    TOP SIX MOST RECENT FONTS
    ALL THEY WAY DOWN THE LIST

    I downloaded it again and reinstalled it, restarted my pc, restarted illustrator, and it still didn't work - but, with my type selected, I went to Type -> Find Font and from there I managed to change it into aurulent_sans_mono ok. but even after that I still can't select it in the other ways. It's probably just a bug but at least I've found a way round it.
    thanks for trying it out

  • Populate a drop down list with data from Excel and fill in a text field, based on drop down selectio

    Hi!
    I have a problem with a PDF form: There's a drop down list that I populate with Excel data that I've put in an XML file through an XSD file -- no problem here. The drop down list has a data binding to the XML file, so that a choice in the drop down list can be associated with an object in the XML file. So, when I make a choice in the drop down list, a corresponding object value is fetched from the XML file and put in a text field on the form.
    How to do this is described by Stefan Cameron here:
    http://forms.stefcameron.com/2006/07/29/dynamic-properties/
    There's a snag, though, and to describe it more clearly:
    The XML file contains three types of objects: role, role number, and role cost center. Of these I use the first and the third, i.e. the role and the role cost center. The drop down list contains the roles, and when I select a role, the corresponding cost center is filled out in the text field. So far, so good!
    But -- if the cost center has the same value for two or more roles, all of these roles "bounce back" into the drop down list, that is, they are all selected in the drop down list. How many of these you can see depend on the height of the drop down list -- if it's low you'll only see the first one.
    If I modify Stefan Cameron's data in his example I get the same behavior, so the problem seems to have to do with how XML data are fetched.
    I'm sure there's a workaround, but I can't find it! I've spent many hours browsing the web without finding anyone with a similar problem.
    Any suggestions appreciated!

    Although your issue is far beyond mine, I was hoping you can help me out.....
    I need to create a drop down list of names which I wish to somehow link to an Excel spreadsheet.
    Please let me know the steps I need to do.  I've tried several things, but nothing seems to work and I'm not sure what I am doing wrong.
    Thank you

  • How to Change a Default Value from Drop Down Box displayed in Web Dynpro?

    Hi,
    How to Change a Default Value from 'High' to 'Low'  in a Drop Down Box for RANGE field displayed in Standard Web Dynpro Component.  I saw a Default Value set for a RANGE field  in View Context When I select that field and click on Display. I am seeing Default Value set it to 'HI'. Please let me know how to change from HIgh to Low.
    I appreciate your help!
    Thanks,
    Monica

    hi,
    use the set_attribute( ) method now to set the attribute with a particular key eg HIGH in ur case
    // u can use the code wizard( control +f7) this code will be auto generated when u select the
    //radio button to read the context node
    DATA lo_nd_cn_node TYPE REF TO if_wd_context_node.
      DATA lo_el_cn_node TYPE REF TO if_wd_context_element.
      DATA ls_cn_node TYPE wd_this->element_cn_node.
    * navigate from <CONTEXT> to <CN_NODE> via lead selection
      lo_nd_cn_node = wd_context->get_child_node( name = wd_this->wdctx_cn_node ).
    * get element via lead selection
      lo_el_cn_node = lo_nd_cn_node->get_element(  ).
    * set single attribute
      lo_el_cn_node->set_attribute(
          name =  `ATTribute name.`
          value = 'LOW' ).
    it will solve ur query ..
    also refer to this component
    wdr_test_events -> view dropdownbyidx and dropdownbykey ->method name onactionselect.
    regards,
    amit

  • Multi-Select (drop down list) data not saving upon save/email

    I have created a drop down list and modified it to allow multiple selection, i.e.
    form1.BusinessAreaTable[1].Row1[4].ERP::ready:form - (JavaScript, client)
    this.ui.choiceList.open= "multiSelect"; this.rawValue
    = "-1"
    However, when I go to save the form and/or email the list fields erase and the data / items I selected are gone.
    Please help, thanks.

    Okay, I have the form now.
    You are using script in the form Ready event to make a dropdown list mimic a listbox. This is totally unnecessary. I have changed the ERP to a multi-select listbox in the Object > Field palette and commented out the script.
    Here is the form: https://acrobat.com/#d=K*P4xKIA4kkqEHGTpgyvvw
    The form has not been Reader Enabled, so user with Reader will not be able to save the data inputted or submit by email in PDF format:
    Summary here:
    http://assurehsc.ie/blog/index.php/2010/05/using-livecycle-forms-in-acrobat-and-reader/
    Niall

Maybe you are looking for

  • My Bill Does Not Display Online

    I have been a Verizon internet customer for close to 4 years. Through this time I have had high speed internet (DSL) at several addresses without having to open new accounts or make any changes other than service address. In october, I moved to a new

  • BBM Malfuntion

    I have had this phone for about half a year (Blackberry Z10)  and it has worked fine.  I wake up this morning and go to send a bbm and I get the red clock symbole.  I spent 30 minutes with Rogers tech support and they can't fix it.  My internet still

  • Large Flat Files

    I have some large pipe delimited flat files (upto 1.5gb in size) from a Mainframe that i need to get into Oracle. I was just wondering if this is possible via Oracle Workbench. Problem with using SQL*Loader was getting the files onto the database box

  • Disk store lock

    Hi All I am trying to configure Adobe Livecycle ES4 and I gave the temp directory using GUI as /data/xyz/jvm/tmp and also the same location for JVM arguments -Djava.io.tmpdir=/data/xyz/jvm/tmp. When I start the servers after the configuratiion its gi

  • Libraries and Classpath option panel is empty

    Hi All, Just installed Jdeveloper 11g 11.1.1.1.0 on Vista 64b. Added my jar file into "Manage Libraries" whent to the project properties, "Libraries and Classpath", but this pannel is empty, blank, does not have any options.... Any ideas what is wron