How to make checkbox option enable/disable

Hello,
i am newbie in coldfusion...i want to make an option answer after my first check box answer is true
code :
<tr>
    <td><table width="100%"  border="0">
  <tr>
<tr>
    <td>Do you have a car? </td>
    <td><input name="car_type" type="checkbox" value="1">Yes<input name="car_type" type="checkbox" value="0">No</td>
</tr>
<tr>
    <td width="100%"></td>
    <td><strong>(Select your car type)</strong></td>
</tr>
  <tr>
    <td></td>
    <td><input name="car_bmw" type="checkbox" value="1">
      BMW</td></tr>
   <tr><td></td>
    <td><input name="car_mercedes" type="checkbox" value="1">
      Mercedes</td></tr>
    <td></td>
    <td><input name="car_toyota" type="checkbox" value="1">
      Toyota</td>
     <td></td>
    <tr><td>
    </td><td>Others<input name="car_others" type="text" size="20" maxlength="100" /></td>   
  </tr>
  <tr>
Thank u

What have you tried? 
This is a client-side interaction, not server-side, so it should be fairly straightforward to do in JavaScript (I'd recommend using jQuery as it will make things a bit easier).
-Carl V.

Similar Messages

  • How to make "Remove" being enabled in menu?

    Dear All,
    Just a simple top question, how to make "Remove" being enabled in Edit Menu? I couldn't find any UID on it.
    You could find it out under "First Record, Previous, Next and Last".
    Thanks in advance!
    Jemmy

    Hi Jemmy,
    don't know if if this what you are looking for:
    When opening an order form (or and other document),
    under menu "data" there are the options "add row", "duplicate row" and "delete row". Since these methods manipulate the rows in a matrix elements. For obvious reasons the methods seem to be only active when focus resides in  the row of a matrix.
    HTH Lutz Morrien

  • How to make the option none in the payment information from app store

    how to make the none option in payment information in app store??????using iphone
    i made a purchase from my card then after i tried to make another purchase that is free but while doing this a massege appears "review your payment information" then it goes back to app store.tell me how to make none option in apple account payment information using iphone??????

    surendramandia wrote:
    i don't want to creat a new account i want  none payment option in my existing account
    This has been suggested by other Users, but have not tried it myself...
    ' ... Get an iTunes gift card & redeem that in iTunes using your existing Apple ID.
    Then the option for none, regarding a credit card should appear...'

  • How to make F7,F8,F10 disabled for security?

    Hi alll,
    Pls can any boady tell me ; how to make F7,F8,F10 disabled for security purposes?
    Abdetu.

    Hello Gerd
    Thanks for reply,
    i made a search for the file u mentioned
    FMRWEB; i found it on path C:\orant\FORMS60
    having the following :
    # FMRWEB.RES is the key definition file for webforms. The syntax is:
    # JFN : JMN : URKS : FFN : URFD (whitespace ignored)
    # JFN = Java function number
    # JMN = Java modifiers number
    # URKS = User-readable key sequence (double-quoted)
    # FFN = Forms function number
    # URFD = User-readable function description (double-quoted)
    # JAVA FUNCTION NUMBER
    # 33 = PageUp
    # 34 = PageDown
    # 35 = End
    # 36 = Home
    # 37 = LeftArrow
    # 38 = UpArrow
    # 39 = RightArrow
    # 40 = DownArrow
    # 65 - 90 = Ctrl+A thru Ctrl+Z (These will always have the control
    # modifier explicitly included, as well as any other
    # modifiers that might be used.)
    # 112 - 123 = F1 thru F12
    # 9 = Tab (Ctrl+I, without the control modifier)
    # 10 = Return (Ctrl+J, without the control modifier)
    # JAVA MODIFIERS NUMBER
    # Equal to the sum of the values for the modifier keys:
    # 0 = None
    # 1 = Shift
    # 2 = Control
    # 4 = Meta
    # 8 = Alt
    # FORMS FUNCTION NUMBER
    # The Forms function numbers match the function numbers found in a
    # typical Forms key binding file.
    # USER-READABLE STRINGS
    # The double-quoted strings appear when users click [Show Keys], and
    # are used for this purpose only. These strings can be translated as
    # needed. Note that the strings do not affect what actually happens
    # when end users press a particular key sequence.
    9 : 0 : "Tab" : 1 : "Next Field"
    9 : 1 : "Shift+Tab" : 2 : "Previous Field"
    116 : 0 : "F5" : 3 : "Clear Field"
    38 : 0 : "Up" : 6 : "Up"
    40 : 0 : "Down" : 7 : "Down"
    33 : 0 : "PageUp" : 12 : "Scroll Up"
    34 : 0 : "PageDown" : 13 : "Scroll Down"
    69 : 2 : "Ctrl+E" : 22 : "Edit"
    10 : 0 : "Return" : 27 : "Return"
    76 : 2 : "Ctrl+L" : 29 : "List of Values"
    115 : 0 : "F4" : 32 : "Exit"
    75 : 2 : "Ctrl+K" : 35 : "Show Keys"
    83 : 2 : "Ctrl+S" : 36 : "Commit"
    118 : 1 : "Shift+F7" : 61 : "Next Primary Key"
    117 : 0 : "F6" : 62 : "Clear Record"
    38 : 2 : "Ctrl+Up" : 63 : "Delete Record"
    117 : 1 : "Shift+F6" : 64 : "Duplicate Record"
    40 : 2 : "Ctrl+Down" : 65 : "Insert Record"
    119 : 1 : "Shift+F8" : 66 : "Next Set of Records"
    1005 : 0 : "Down" : 67 : "Next Record"
    1004 : 0 : "Up" : 68 : "Previous Record"
    118 : 0 : "F7" : 69 : "Clear Block"
    66 : 2 : "Ctrl+B" : 70 : "Block Menu"
    34 : 1 : "Shift+PageDown" : 71 : "Next Block"
    33 : 1 : "Shift+PageUp" : 72 : "Previous Block"
    116 : 1 : "Shift+F5" : 73 : "Duplicate Field"
    119 : 0 : "F8" : 74 : "Clear Form"
    122 : 0 : "F11" : 76 : "Enter Query"
    122 : 2 : "Ctrl+F11" : 77 : "Execute Query"
    69 : 3 : "Shift+Ctrl+E" : 78 : "Display Error"
    80 : 2 : "Ctrl+P" : 79 : "Print"
    123 : 0 : "F12" : 80 : "Count Query"
    85 : 2 : "Ctrl+U" : 81 : "Update Record"
    121 : 3 : "Shift+Ctrl+F10" : 82 : "Function 0"
    112 : 3 : "Shift+Ctrl+F1" : 83 : "Function 1"
    113 : 3 : "Shift+Ctrl+F2" : 84 : "Function 2"
    114 : 3 : "Shift+Ctrl+F3" : 85 : "Function 3"
    115 : 3 : "Shift+Ctrl+F4" : 86 : "Function 4"
    116 : 3 : "Shift+Ctrl+F5" : 87 : "Function 5"
    117 : 3 : "Shift+Ctrl+F6" : 88 : "Function 6"
    118 : 3 : "Shift+Ctrl+F7" : 89 : "Function 7"
    119 : 3 : "Shift+Ctrl+F8" : 90 : "Function 8"
    120 : 3 : "Shift+Ctrl+F9" : 91 : "Function 9"
    113 : 0 : "F2" : 95 : "List Tab Pages"
    72 : 2 : "Ctrl+H" : 30 : "Help"
    ------------------------------------end of file-----------------------------------------
    Now if this is the file i have How can i make F7,F8,F10 disabled for security?
    can u clarify to me how can handle this,i am afraid i may do something wrong..!!!
    But how do you want to commit without the shortcut?? What do u mean by a shortcut..?
    Thanks in advance..
    Regards,
    Abdetu.

  • How to make checkbox uneditable

    I have a problem about how to make checkbox uneditable.
    1. the checkbox DO not respond to user mouse click
    2. and the text company with checkbox is not greyed.
    setenable is not i wanted, because 2 is not satisfied
    thanks in advanced.

    If I understand the question, then my replies in this thread should help you out:
    http://forum.java.sun.com/thread.jsp?forum=57&thread=122112

  • How to make Scroll viewer zoom disable

    how to make Scroll viewer zoom disable in windows store app

    Hi Imtiyazk,
    Thanks for sharing the solution, should help others have the same issue.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to make omniportlet mobile enabled

    while creating a new page on portal, i am selecting page type as Mobile and when i am adding portlet on this page,very few portlets are shown,i want to add omniportlet on this page.How can i do it?

    You simply can't
    There is a few built in mobile enabled portlets. When you view your page in mode 25 (mobile preview) you'll see only portlets that are developped with mobile support.
    Except the mobileXML and a few other, you won't fond anything interesting.
    You got to develop your own portlets for mobile access.
    See section 8.12 (Enhancing Portlets for Mobile Devices) of the portal developer guide. It will explain how to make your portlets enable for mobile.
    By the, if you start developping mobile portlets, make sure you use the correct technologies.
    You wont do the same if your target is IE/Opera on pocketPC or palms or if your target is the WAP on a standart mobile phone.
    the standarts :
    MobileXML is a deprecated standart, not supported by oracle that produce WAP content.
    The current standart is the XHTML MP (mobile profile). using this standart means that you will develop a JAVA portlet.
    An alternative is to use JSP with simple XHTML / HTML or whatever else. This will be enough to generate pages for mobile with modern browsers (IE or opera on Pocket PC or palms )
    I hope I've been clear, mobile enhancement in portal isn't a small part, difficult to synthetize in a single post.

  • How to make a row enabled for lead selection and make other Rows disabled?

    Hi,
    What I require is:
    In a webdynpro table , which can have multiple rows, I want to make the rows which are retrieved fom backend as disabled for selection.
    And when I add a new row (using an ADD functionality) , this newly added row should only be enabled for lead selection.
    The Table property "enabled" can be assigned a context , and can be used to control the disabling of whole table.But then if I add the new row to this table, even this will be disabled.
    I can set lead selection to a the new row, but if the whole table is disabled, this won't work.
    Please suggest a solution for this.
    Thanks,
    Richa

    Do not set the enabled flag to the whole table but to the editors of each column. Bind the enabled property to a calculated boolean flag in the data source node. In the get method of this flag add a code that will make the editor enabled only if it belongs to the lead selection element.
    Now do not allow the selection of rows in the table (there is a property for this, perhaps is named rows selection I don't remember well now), but change the lead selection of the data source node to the desired element when you add the element programatically.
    Hope it helps.

  • How to make checkbox field inactive in the output of ALV report.

    Dear All,
    I am having one ALV report in whose output there are checkboxes against each record. Example: the output columns of my ALV report are:
    Checkbox, Sales Document No, Billing Document No.
    Now, my requirement is that if for the Sales Document No there exists any Billing Document No in the output then the Checkbox should be inactive but if the Billing document coloumn is empty for a particular Sales Document No then only the Checkbox field should become active.
    Kindly guide me on how to make this checkbox field inactive.
    Waiting for your reply.
    Warm Regards,
    N.Jain

    Hello,
    Follow the below steps:
    1.Define as--> GS_STATUS TYPE SLIS_STATUS,
    2.check layout check box fieldname is not initial.
          then set the status according to your logical conditions
          GS_STATUS-FLG_CHECKBOXES_ACTIVE = 'X'
    Hope this would help you.
    Let me know your feedback.
    Regards,
    Raju

  • How to make screen field enable when table control gives an error

    Hi,
        I had a scneario like when table control data wrong then one parameter of the screen should be enabled for the input, i knew that screen-name will not work since it will have always table control fields only when table control gives an error.
    How to make the other parameter enable when table control throws an error.
    Regards,
    Jaya

    Hi Gobi,
         Thanks for your response, but issue is - how to make other screen fields enable when there was an error in the table control data.
    For table control - lets say we will use the code as i mentioned above.i am sure that we cant write the code for field enable in between loop & endloop.
    as you said if we right outside the loop-endloop, the module wont be triggered when table control throws an error, because that statement was not there in the loop-endloop.
    please let me know if you need any more information on the issue. I hope there is alternative for this in SAP.
    Thanks
    Jaya

  • How to make Select Options Mandatory?

    Hi Guys,
                  Can anybnody tell me how to Declare  Selection Options for some of them mandatory.
    Select-Options : v_PurOrg for EKKO-EKORG default '2000',
                             v_GRDate for Sy-Datum ,
                             v_GRPrd  for MSEG-GJAHR.
             In these i have to make v_PurOrg Manadatory.
    Thanks,
    Gopi.

    Hi Gopi,
    In order to make select-options mandatory we add OBLIGATORY in the statement like the below.
    Selection-Screen.
    Select-Options : v_PurOrg for EKKO-EKORG default '2000' OBLIGATORY.
    In this case, only the first option will have the default value of 2000.But if you want both the options low and high of select-options, means you have to add the below code in your program in the initialization event.
    Initialization.
    v_PurOrg-low    =   1000. 
    v_PurOrg-high    =   2000. 
    append v_PurOrg.
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • How to make seletion optional VA35?

    Hello Experts,,,
    Please guide about " How to make the selection ( customer, material, PO numbed) optional in VA35?
    While doing the search I have found that "validation in Line number 36-44 in PAI include MV75ANEU_EINGABEN_PRUEFEN"
    what does it mean? where can I view this?
    Thanks & Regards
    RaviRaj0308

    VA35N is a simple report. You can copy it and make any changes necessary. It is pulling the same data as VA35 (the same dictionary structure, from what I see, which, by the way, can be enhanced), but for some reason when presenting the data in ALV, it is only using some fields, not all available. It is just one line ABAP change (in the field catalog routine) to adjust this. Otherwise the report is well-written and optimized.
    VA35 (like VA05) is designed to work with a single sold-to or material #, as I explained above. If you need a different report then you need to use or write a different report. It doesn't make any sense trying to break the transaction that wasn't meant to work that way. You actually might be better off with creating a simple query.
    No disrespect to krishna, but I'm an ABAPer and sometimes functional folks just get these wildest ideas without a good understanding of their impact.

  • How to create "Verbose mode" (Enable/disable trace output)?

    Hi there! I'd like to do as Papervision:
    // Block Papervison3D trace output
    Papervision3D.VERBOSE = false;
    that is, a global variable for enabling/disabling the trace outputs of my own program. I come up with creating
    a class and putting a static boolean member variable. But there is something I'm not sure about: How to use
    it...
    For example: every time I need to do a trace, would I have to put this ? -->
    if( MyClass.VERBOSE ) trace("whatever");
    So it isn't needed to instance the object because a static variable is used. That's the way, isn't it?
    Thanks and regads.

    From the book I'm reading, the author uses it the same way you're saying:
    Inside your Classes, you have
    private var _verbose:Boolean = false;
    I noticed he uses it always (or almost) in the constructor of the classes:
    public function whatever (var:*, verbose:Boolean);
    //I tend to use verbose:Boolean = false on the constructor too so you don't have to always set it.
    inside the constructor you have:
    _verbose = verbose;
    and normaly inside methods handling events like Event.OPEN, Event.INIT, IOErrorEvent.IO_ERROR, HTTPStatusEvent.HTTP_STATUS, you have something like this:
    private function onOpen (e:Event):void {
         if (_verbose) {
              trace("The loading process has begun, or whatever");

  • How to use "selectOneRadio" to enable/disable a Picklist.

    Hi,
    I m new to JSF and having a requirement to enable/disable two picklists using "<h:selectOneRadio>".
    Kindly reply if anyone has done similar thing before or if any one can provide any suggestions on how to acheive this?
    Thanks in Advance!
    Vivek

    Finally,
    I found a way to get this done... I managed to get this work using JavaScript. Look for the code below.
    <script type="text/javascript">
    function enablePickList(form,radio,picklist1,picklist2)
    var radio = document.forms[form][[form+":"+radio|http://www-128.ibm.com/developerworks/forums/]][0].checked;
    if(radio)
    document.getElementById(form+":"+picklist1).disabled = false;
    document.getElementById(form+":"+picklist2).disabled = true;
    else
    if(!radio)
    document.getElementById(form+":"+picklist1).disabled = true;
    document.getElementById(form+":"+picklist2).disabled = false;
    </script>
    <h:selectOneRadio id="myRadio1"
    value="#{GLAccountDimension.enablePicklist}" onclick="enablePickList ('glaccountinsert','myRadio1','AccountLevelList1','AccountLevelList2');">
    <j:selectItem itemValue="true" itemLabel="Select">
    <h:selectOneMenu id="AccountLevelList1"
    value="#{GLAccountDimension.glAccountLevel1}"
    immediate="true" disabled="true">
    <j:selectItems value="#{GLAccountDimension.glAccountLevel1List}" />
    </h:selectOneMenu>
    </j:selectItem>
    <j:selectItem itemValue="false" itemLabel="Select">
    <h:selectOneMenu id="AccountLevelList2"
    value="#{GLAccountDimension.glAccountLevel2}"
    immediate="true" disabled="true">
    <j:selectItems value="#{GLAccountDimension.glAccountLevel2List}" />
    </h:selectOneMenu>
    </j:selectItem>
    </h:selectOneRadio>

  • How to make XE Transaction enabled

    Hi,
    it seems that XE is not transactin enabled by default and we need to run some scripts to make it Transaction enabled.
    Can any one let me know what are the scripts and where to find them?

    Hi ,
    Call transaction SICF and Navigate to "webgui" service; then right-click and select option "Activate".transaction will work definitely.
    This should enable the WebGui functionality in your WAS.
    ITS WEBGUI in ECC6.0
    for more information , check below thread
    MY FEW QUESTIONS
    SSO with ITS & Webenabling WEBGui
    Koti Reddy

Maybe you are looking for