Toggle the textbox under the option from the list, the list is dependent on the Radio

Hello

I'm trying to turn text_box which depends on option select_list, select_list depends on radio_button.

I am able to toggle select_list using radio_button options, but I am unable to manage the text box depending on once again this point SELECT_LIST.

to the title of the header html page: -.

---------------------------------------
< script type = "text/javascript" >

function disableOnValue (o)
{

If (o.value == 'Y')

{

document.getElementById('P86_Select_list_item').disabled = false;

}

on the other

{

document.getElementById('P86_Select_list_item').disabled = true;

document.getElementById('P86_text_box_item').disabled = true;

}

}

< /script >



< script type = "text/javascript" >

$(document) .ready (function)

{

$('#P86_Select_list_item').change (function)

{

If ($(this).) Val() is 'Other')

{

$('#P86_text_box_item').attr ("disabled", false);

}

on the other

{

$('#P86_text_box_item').attr ("disabled", true);

}

});

});

< /script >
-----------------------



under the terms of the Region_Source of the region, including view point: - < b > before < /b > foot
-------------------
< script type = "text/javascript" >

If (document.getElementById('P86_radio_button_0').checked is true)

{disableOnValue (document.getElementById('P86_radio_button_0')) ;}

on the other

{disableOnValue (document.getElementById('P86_radio_button_1')) ;}

< /script >

----------------


and to the title of point Radio_button, HTML Form element attributes: - < b > onchange = "javascript:disableOnValue (this); "< /b >

also similar to the title of the text_box, HTML Form attributes element point: - < b > disabled < /b >


any help


Deep

Hi deep

You need to call a javascript function to create an event onchange on the selection list depends on the return value of 'other' (pThat) to allow your text field.

You try to do a little too much at once.

You need...

Radio button - onchange - javascript funtion1 (to activate the selection list)
Select list - function2 javascript onchange (to activate the text field)

I hope this helps. Holla back if you get stuck.

Don't forget to mark the answers useful or correct ;)

See you soon

Ben

Tags: Database

Similar Questions

  • Deactivation / activation of the Radio buttons

    Hi all

    I develop application in Oracle Application Express 5.0.0.00.31.

    In my page, I created a tabular form by using the query

    SELECT

    "ROWID",.

    'EMPNO ',.

    'ENAME ',.

    'STATUS ',.

    "ACCEPT."

    FROM "EMP".

    STATUS and ACCEPT two columns are type of radio button with a static query as

    STATUS: STATIC2: new; N, entitled; A, completed; D

    ACCEPT: STATIC2: accept; F, rework; R

    My requirement is

    1. When STATUS =has ' this time then ACCEPT column boxes must be activated. (I)

    2. another in('N','A') of STATUS then ACCEPT column buttons Radio must be turned off

    Note: Later I hide status column. Accept that column must be specified. Based on the value of the STATE Accept column column

    Radio buttons work

    I put my sample application in

    https://Apex.Oracle.com/pls/Apex/f?p=28020

    workspace: myspace77

    user: comments

    password: apex_demo

    -What someone will help me in this regard?

    Thanks in advance.

    Kind regards

    Colette

    Hi Colette.

    Check your Application-> Page 1 28020. I've implemented the toggle the radio button.

    Here are the steps to accomplish the toggling the buttons in table form:

    • Added STATUS column with alias STATUSD in the form of your table.
    • Added real action "Run the Code JavaScript" in your dynamic action "updating of the form: turn radio buttons:

    Action: Run the JavaScript Code

    Fire on loading the Page: Yes

    Code:

    $('th#STATUSD').hide();
    $('td[headers="STATUSD"]').hide();
    $('td[headers="STATUSD"]').each(function() {
        var row_val = $(this).text();
        var row = $(this).closest('tr');
        if (row_val == 'N' || row_val == 'A') {
          row.find('td[headers="ACCEPT"] input[type="radio"]').attr("disabled", true);
        } else {
          row.find('td[headers="ACCEPT"] input[type="radio"]').removeAttr("disabled");
        }
    });
    

    Assigned items: no

    Kind regards

    Kiran

  • Why Ai CC 2014, when I use a pathfinder on two objects tool, their anchor points break a bit from where they were? I search in all the nod to under VIEW options &amp; could not find the culprit. Help, please!

    Why Ai CC 2014, when I use a pathfinder on two objects tool, their anchor points break a bit from where they were? I search in all the nod to under VIEW options & could not find the culprit. Help, please!

    It looks like "snap to grid of pixels" just once more.

    Uncheck the box "align new objects to the pixel grid" in the menu of the transformation Panel.

    Select the objects and uncheck "snap to grid of pixels" in the transformation Panel.

  • BlackBerry Smartphones BB Bold 9930 cannot find the battery under device options saving Mode

    I have a BB Bold 9930 with OS v7.1.0.163 and I can't find the battery under device options saving Mode. I was told that I needed to update my device to a newer version, after around .3xx software do not know that. But when I try to update my device through BlackBerry Web page software or Office Manager, they both tell me that my device software is up-to-date. How can I update my device software to a newer version on OS 7.1?

    OK, I thought that you must have some higher than 7.1.0.342 BONES to get the battery in watch mode on your output device. Apparently Viva has not published a more recent OS you already have.

    Operating system device provided are "released" by specific carriers once that they are certified and trained to their support technicians, but still, you are able to load any carrier the same model by following the instructions below.

    See the link below to download it and follow these simple instructions.

    Make a backup of your device first, using Desktop Manager > backup. Close the office at the end Manager.

    1. download the OS files to the PC then install on the PC by running (double click) the downloaded file.

    https://swdownloads.BlackBerry.com/downloads/contactFormPreload.do?code=C6BFF625BDB0393992C9D4DB0C6B...

    2. go in c:\program files Research in motion\apploader and delete the file named "vendor.xml."
    3. plug in the BB and double-click on "Loader.exe." It is located in the same place as the above vendor.xml file.

    Note: Some users may be concerned they will void their warranty of device by loading an OS from another carrier. There is really nothing to fear. Please read more information about it here: http://www.port3101.org/power-users/296-blackberry-os-upgrade-including-betas-myths-dispelled.html

    BlackBerry Handheld Software v7.1.0.1189 (Multilingual)

    Package Version: 7.1.0.1189
    Composed of:

    • Applications: 7.1.0.355
    • Software platform: 5.1.0.288
    • File name: 9930AMEA_PBr7.1.0_rel1189_PL5.1.0.288_A7.1.0.355_C _Spire_Wireless.exe
    • File size: 207,62 MB
  • The ability to change my current page to my homepage under TOOLS/OPTIONS disappeared. How can I get that back?

    I updated Adobe Media PLayer, ensuring that I have all the toolbars adding optional and anti - virus did not allow apps. Then after that YAHOO has become my start page. I went to change it under TOOLS/OPTIONS, and option set to make the page my homepage is annihilated, not there, does not exist. Where it's going and how do I get it back? I have run a business of selling online and you have to press the HOME button throughout the day to look for commands.

    Hi JoeSeadog, extensions can change the dialog box. Try turning off all non-essential or unrecognized extensions on page modules. Either:

    • CTRL + SHIFT + a
    • Firefox orange (or the Tools menu) button > Add ons

    In the left column, click Extensions. Then, when in doubt, turn off. (Or if there are of course badware/useless, delete).

    Typically, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Any improvement?

  • 'Options' are not listed under 'Tools' in the Manger of the activity to change the font size of the incoming messages. Where is he?

    I'm changing the the font size for incoming messages. Thunderbird "helps," says click on Tools/Options/display/setting in the advanced form. When I click on 'Tools' or use "Alt + T", 'Options' are not listed. Where can I go to get the "options"? I am running Windows 8.1 if it makes a difference.

    ALT + T you should get there. Options is under Tools on the menu bar. Pressing alt makes the menu bar appear if not already displayed.

    If you use the AppMenu (square with 3 lines) button click the AppMenu, hover over the Options, and then select Options.

  • I have microsoft windows mail. I want my auto complete addresses. I put it in the to do under "tools-options-send-AutoComplete. He disobeys unless it's an address that I used in the last 24 hours. Help!

    I have microsoft windows mail.  I want my auto complete addresses.  I put it in the to do under "tools-options-send-AutoComplete.  He disobeys unless it's an address that I used in the last 24 hours.  Help!

    Windows Mail only remembers 29 addresses. This will show how to delete old addresses.

    How to delete registration completion email in Windows Mail
    http://www.Winhelponline.com/articles/245/1/how-to-clear-the-email-auto-complete-entries-in-Windows-mail.html

    Bruce Hagen ~ MS - MVP [Mail]
    Imperial Beach, CA

  • How to toggle the option of VM tools upgrade policy

    Hello

    This seems like a simple request, but I can't find the proper syntax for it.  I am trying to create a workflow that will toggle the VM option to check VMtools automatically at the next reboot.

    I can verify that it is currently but may not know how to change it.

    var currentopt = vm.config.tools.toolsUpgradePolicy;

    System.log ("currentopt =" + currentopt);

    Any assistance would be helpful.

    Thank you

    B

    Which language to use to automate things in your environment?

    Old blog post - automate VMware tools upgrade policy: virtuallyGhetto

    PowerCLI post - checking vmware tools upgrade strategy using powercli, setting political upgrade vmware tools | VMware and Powershell

    PowerShell different ways - http://powershell.com/cs/media/p/29395.aspx

    YA powershwell way - http://serverfault.com/questions/686158/setting-vmware-vsphere-vms-to-automatically-upgrade-vmware-tools

    I hope one of them to help you on your way.

  • I am trying to build a DVD menu, but whenever I click on the button "Toggle the display of the menu" options I get no picture and I am unable to create a menu. Can someone help me with this?

    I am trying to build a DVD menu, but whenever I click on the button "Toggle the display of the menu" options I get no picture and I am unable to create a menu. Can someone help me with this?

    You need to install the library separately:

    http://helpx.Adobe.com/Encore/using/download-library-content.html

  • Why can't I configure the POP/IMAP mails for my Muse site in Business Catalyst? I don't have the option "use this service for e-mail as hosting the Web site" under Advanced options

    Why can't I configure the POP/IMAP mails for my Muse site in Business Catalyst? I don't have the option "use this service for e-mail as hosting the Web site" under Advanced options.

    Is this due to my hosting Plan? Appreciate the answers.

    Your site is a CCM that is located on a WebBasics plan (this plan does not e-mail hosted on Business Catalyst).

    If you want to create the email addresses on this site, you will need to configure your mail elsewhere server and configure the MX records on your site to point to the external mail server.

    If you want to use the hosted Business catalyst e-mail services, you should use a WebBasics + or superior siteplan. To upgrade your free CCM site, access administration area of your site-> Site Management-> upgrade now-> choose the desired site plan and billing frequency-> Add personal and credit card details-> Submit.

    Please see this article on setting up email on your site of BC accounts: http://docs.businesscatalyst.com/user-manual#! / settings/mail electronic-users of the site -

    For the establishment of the records point to the external mail server, see http://docs.businesscatalyst.com/user-manual#! / settings/email-users/creation-boxes of reception-for-your-users of the site

    Kind regards

    Laurant

  • Command to refresh a calculated field when you select an option from the drop-down list box

    When my form user selects an option in a drop-down list box, the value in the field (in this case, Total) I would like to update, but it isn't.

    A radio button option box makes the Total-development field to automatic update when the user clicks on the radio button. But the drop-down list box is not updated Total (without clicking away from the field). I would like to add a command in the Combo Box to refresh the Total field when you selected the option to drop-down list box.

    Someone at - it a code (Javascript?) to get there.

    Thank you very much.

    You don't need a script, simply select the 'Value selected to validate immediately' checkbox on the Options tab of the dialog list box drop-down list box field properties.

  • Toggle the scrollbars application programmatically

    Hello

    Right now, I need to change some of our customized in LabVIEW 2010 tools to work on lower resolution screens. The auto resizing feature is not really an option that it distorts most of the features of the user interface. I looked at the addition of a vertical/horizontal scroll to the application bar, and that seems to be what I need reasonably well. Unfortunately for those who do not have screens high resolution, I would like to really as for the scroll bars to activate. Is there a way to toggle the scroll bar vertical or horizontal of an application programmatically? I can see what is possible for the controls, but did not find the option for effective enforcement.

    Thanks in advance for any help you can offer.

    Kind regards

    Shane

    Hello!

    Check to see if it can do the trick

  • How to create a shortcut to toggle the sound device?

    Anyone have any suggestions on how to create a shortcut to toggle the USB audio device in Device Manager?

    A shortcut is to enable this device, and the other shortcut is disable this device.

    Thanks for all the suggestions

    Hi oem7110,

    · Why you want to create a shortcut to enable or disable an audio device from Device Manager?

    You will be able to create the shortcut to Device Manager but no shortcut to enable/disable a device in Device Manager:

    a. right-click on the space empty where you want to create a shortcut

    b. click the shortcut

    c. in the type of space empty in devmgmt.msc

    d. click Next and follow the instructions in the wizard.

    With regard to:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Is it possible to toggle the setting panel open a closure with a combination of keys?

    Is it possible to toggle the setting panel open a closure with a combination of keys, or y at - it a script that can do?

    adjustmentPanel.jpg

    Try this instead:

    Go to Edit/shortcuts...

    Then where it says "shortcuts to: ', pull down the menu drop down and select"request Menus.

    Then expand the category of 'Window' and from there to the bottom, you will find 'Properties' - give a keyboard shortcut.

    This might work

  • EA1 - Code Editor - toggle the bookmark does not exist?

    Hello

    It seems there is no option toggle the bookmark in EA1 Code Editor.

    CTRL + K, Ctrl + Shift + K does not work.

    Hello

    This question has already a bug logged for this: LACK of TOGGLE MENU ITEM IN PLSQL EDITOR of BOOKMARKS.  Currently, his difficulty by is set to 4.0.  As this feature comes with infrastructure JDev IDE, it is is not clear to me if he just did not get hung up properly when we re - based on JDev 12 c or maybe there's another complication.  You will notice the knot bookmark for the Code Editor Preferences no longer appears in 4.0, and the same is true of the function shortcut keys in shortcuts preferences.

    Some common ailments with versions 3.2 and earlier was that bookmarks don't work at all for the worksheet and have not persisted in the sessions for the Code PL/SQL Editor.  Once the bug is fixed, hope that there are also improvements in other areas.

    Kind regards
    Gary

    SQL development team

  • Button to toggle the CSS On / Off?

    There was a button to toggle the CSS or not, in the toolbar made style. I noticed that the toolbar has been removed, but no one knows if there is stil a button anywhere within the new CC version that makes alternate CSS on or off? I know there are plugins for browsers, such as Web Developer that can do this, but at least in Chrome, it will not work when you are previewing local files. I would just be able to do this in Dreamweaver itself again.

    I don't see any button, but view > Style made > display Styles it turns on and off.

    Alternatively, you can configure it with a shortcut under Edit > keyboard shortcuts > View.

Maybe you are looking for

  • Drop-down menus does not open. Click right box will not appear.

    Hello! Yesterday, I was working on the Wix site. I noticed that when I tried to do a right click to copy and paste text box never showed up. I realized then, on other sites, in the drop down menus would not open (as the ones where you select your Sta

  • blank resource visa info during the first round

    Hi all I am trying to run the pilot of 6100 fluke on a fluke remote 6100.  When I run the initialization of the remote device, I always get the following error message: VISA: (Hex 0xBFFF000E) the given reference of session or the object is not valid.

  • WSM Streaming Applications

    1. when streaming applications assigned to the device, instead of applications assigned to the user streaming be available? I waited for this feature since before the acquisition of Dell Wyse.

  • Sting, error & authentication connection by trying to access MSN games

    Original title: authenticate & Login error Authentication failure on a blue screen when you try to access MSN Spades, to the games and will not sign in?

  • How to change time zone on VMHost

    Hey allI'm running out of ideas, doesn't know it's so hard to find how configure/update the time zone on the ESX host using powercliThanks for your advice much appreciated!Cheers, Rafael