simple ' show / hide ' script using option buttons, need a bit of help

Hello;

I have a place in my form I need to swap out what type of form you need to fill in an area. If I don't do it, it makes the page look over crowded, and if I go off to a process 2 or 3 steps, it doesn't have enough information in each section to be worth. It is one or the other.

At the present time, this code works well. Click on a radio button, and the form section appears and disappears. What I'm trying to do when the page loads, one of the radio buttons is selected and one of the sections of the form is visible. Then if you click the other radio button, it inverts the.

can someone help me tweek this code if one of the buttons is selected all the time?

Here is my script.

< style type = "text/css" >
{.showHide}
position: absolute;
background-color: #f1f1f1;
Width: 350px;
padding: 1px;
color: black;
border: 2px #999999 wiped out;
display: none;
}
< / style >


< script language = "JavaScript" >
function setVisibility (id, visibility) {}
document.getElementById (id).style.display = visibility;
}

< /script >

< form >

< input name = type type = radio onclick = "setVisibility ('sub3', 'inline'); setVisibility('sub4','none');" value "male" = checked > selection 1 "

< input type = radio type value = 'female' onclick = name = "setVisibility ('sub3', 'none'); setVisibility ('sub4', 'inline');"; > selection 2

< div id = "sub3" class = "showHide" > selection 1 content < / div >

< div id = "sub4" class = "showHide" > selection 2 content < / div >

< / make >

That's the short of it with tons of other codes on anyone of dumping.

Thank you

You took the class attributes of option buttons that corresponding with the functions of jquery... very simple fix. I have re-uploaded the sample page with your code and the class number fixed. Seems to work well. If you have other questions give me a shout. New page updated.

Tags: Dreamweaver

Similar Questions

  • Show/hide area using a button

    Hello

    I have a page with a region with fields of tblparticipant and then I have another region with the rest of the fields of tblparticipant. The page shows region 1 but then I want to push a button 'Continue' and region 2 shows in region 1.

    Hope it makes sense.

    It depends on your type of button, if you have a branch on the page which is conditional on the button then you can change the direction and put the value of the request in there, or you could change the button and use the 'URL Redirect Option' setting to redirect to the same page, and set the value of the request it.

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • Hotkeys to show/hide the tool Options and the Photo to PSE11 tray

    LOL - I just find it has shortened F4 to show/hide the xD Tool Options
    Overall I have disabled "Auto Show Tool Options" option and use F4... Thanks Adobe you have not left it without no solution!

    Title of the message was edited by: Brett N

    And have you tried F5? You will soon use the F4 and F5 to clear your display

  • Advanced to show/hide actions using an object that is set to show the project on another slide?

    I'm working on a piece of senario based e-Learning and I have built a few things with the help of advanced on a slide Actions that must be available in the rest of the project.

    But the idea falls off when I need to copy objects to another slide, give to each new instance and modify the script.

    In this spirit, I have configured the objects on the screen during the rest of the project property, but I am unable to get them to show or hide a different slide when clicking on a button on the slide.

    Is there anyway to make this work? Or am I aiming too high?

    It depends on the version you are using:

    In version 5: you can only hide objects, the value to display for the rest of the project, on leaves where the object is not 'really', where he has his script (http://lilybiri.posterous.com/playing-hide-and-seek-with-captivate-objects)

    Since version 5.5, you can hide AND show this kind of objects perfectly. My blog has a lot of examples of these workflows.

    In version 6, you can even display the buttons in form for the rest of the project, hide and show their. In previous versions, this kind of schedule is impossible for interactive objects.

    http://lilybiri.posterous.com/toggle-shape-buttons

    Lilybiri

  • Action Dynamics show/Hide article (s) or buttons on the box check

    Hi all

    I use Apex 4.1 and I created a dynamic action, so when the box is checked, an item might be hidden.
    And when the checkbox is unchecked the item would have shown once again.
    There are only several necessary steps otherwise only following the steps in the wizard action. I don't know much about the java script, then this dynamic action
    seems to be a good solution if only it would work.
    I use a simple box that returns Y on N off and active.
    Oh and fire on the page loading is disabled and that the scope of the event is set to live.
    Still doesn't seem to work.

    Can anyone help?

    Kind regards
    Cleo

    You must also add a process inside your dynamic action that updates the region of your article.

    Everything that you put in the elements inside the APEX is known inside validations, only when it is calculated by the server.

    The idea of dynamic action is:

    1 value sent on the server (you can do this with an empty plsql process inside your dynamic action that publish your checkbox values)
    2 update the regions with the new value for the server (there is a update within the dynamics of the action process)

    Open your created dynamic action in the APEX and explore options. You'll find ;)

    Concerning

    Nico

  • Show/hide bounding box option does not work. No more keyboard shortcuts. Also more problems.

    I had problems with the CC Illustrator who started this morning and I hope I can find a solution through this forum. I tried to contact adobe in appellant and chat support and I didn't know until today is how problems in their customer service program. I was transferred several times to the bad people while waiting for an hour each time, or is disconnected during a hold and had to start over my waiting time. Cat was not helpful because they don't answer my questions or give me a direct line to call, instead of repeating that I have contact the same telephone number that puts me on hold and then drop my calls (I use a land line).

    It is very difficult to describe the problem, but I'll do my best. I can't use the bounding box feature, even if the show bounding box option is selected. None of my shortcut keys work and all the files that I opened are unbearably slow. Everything I do in the program is hit or miss or not even happen, so in order to see the change, I have to scroll the artboard and return; that is, draw a rectangle (then has to scroll far off the screen to the Board chart and scroll back to see), fill it with a color (then have to scroll far and scroll back to see again), or changes do not occur at all (scroll away or not). Also sometimes Illustrator does not recognize my actions unless I repeat them several times.

    I use the software Adobe CC every day at my work (Illustrator, Photoshop, Indesign, After Effects) and have never had a problem like that. I have not download or change settings on my computer before it happened.  All my other adobe programs work well as are all other programs not adobe on my computer. All my programs are now fully updated and restarted my computer at least a dozen times. If anyone could shed some light on how I can solve this problem, or have worked in it before that I would appreciate greatly any assistance. I'm very behind on my work and have deadlines to hit. Thanks in advance for any help!

    Data sheet:

    iMac
    27 inch, mid-2011
    Processor: Intel Core i5 at 2.7 GHz

    Memory: 8 GB at 1333 MHz DDR3

    Graphics card: AMD Radeon HD 6770 M 512 MB

    Software: Mac OS X Lion 10.7.5 (11G63b)

    Traore,

    There is a possibility I thought, a little hidden in 5) and perhaps unlikely because it happened only today, namely the lack of having two families of fonts Verdana and Tahoma installed as TTF and activated; that caused some hesitation to Illy reported in the past.

    But it sounds a little weird than that.

  • Show/hide multiple fields on list drop-down choice to help if else

    Goal is to display or hide the three fields according to a choice of menu drop-down. If show X, hide if Y.

    How a syntax on line error 6 when adding to the trigger mouse-to the top of the field drop-down list.

    Are several actions allowed for each if condition?

    if(event.target.value = "Yes")
      getField("Top_inches").display = display.visible;
      getField("Top_numerator").display = display.visible;
      getField("Top_denominator").display = display.visible;
    else
      getField("Top_inches").display = display.hidden;
      getField("Top_numerator").display = display.hidden;
      getField("Top_denominator").display = display.hidden;
    

    You have at least two syntax errors. The first is that you used the wrong operator for comparison. 'Is', not '=' (this is the value assignment operator).

    The second is that you did not put blocks of code inside the curly braces.

    If your code should be:

    if (event.target.value == "Yes") {
        this.getField("Top_inches").display = display.visible;
        this.getField("Top_numerator").display = display.visible;
        this.getField("Top_denominator").display = display.visible;
    } else {
        this.getField("Top_inches").display = display.hidden;
        this.getField("Top_numerator").display = display.hidden;
        this.getField("Top_denominator").display = display.hidden;
    }
    
  • DataGrid, refresh and filter, need a bit of help

    Hi all.

    I have a datagrid.  It's full on application creationComplete using the following code

    protected function application1_creationCompleteHandler (): void
    {
    db_services.endpoint = " " http://bleh/AMFPHP/gateway.php ";               
    db_services.source = 'jobs '.
    db_services.destination = 'amfphp ';
    db_services. GetOperation ("getYourJobs"). Send();
    }

    My datagrid is then pulling in data from the table as follows

    < mx:DataGrid width = "362" height = "340" itemCreationPolicy = "immediate" includeIn = "clientuser" x = "1" y = "30" dataProvider = "{YourJobsArr}" id = "CU_YourJobs" >
    < mx:columns >
    < mx:DataGridColumn headerText = "" ID: "width ="42"dataField ="id"/ >"
    < mx:DataGridColumn headerText = "" ad Ref: "width ="70"dataField ="jobref"/ >"
    < mx:DataGridColumn headerText = "" company: "dataField ="companyname"/ >"
    < mx:DataGridColumn headerText = "" Position: "dataField ="position"/ >"
    < / mx:columns >
    < / mx:DataGrid >

    There is a log on screen until the user gets to see this datagrid, however, and based on that they connect as a filter is executed on the data, the filters is

    YourJobsArr.filterFunction = GetYourCurrentJobs_filterFunc;
    YourJobsArr.refresh ();

    This code is located in the statement of success login

    protected function GetYourCurrentJobs_filterFunc(item:Object):Boolean
    {
    If (item.assignedrecruiter is LoadedID)
    {
    Returns true
    }
    on the other
    Returns false;


    }

    This is the filter

    Now, this works well, as I connect to different accounts, they can see that the data they are supposed to.

    However, I have another State where the user can add data to the database mysql, which comes from the data.

    Now that they submit this button, I need to remind the AMFPHP script to call the database and retrieve all the information once again, that the data added are looked at.

    I did it using this on my "submit" button

    < s:Button x = "88" y = "200" label = "create a task" click = "createNewJob (), application1_creationCompleteHandler ();" "/ >

    Now the only problem here is that all the data is reduced, it is not filtered.

    Can anyone suggest how I can then re-filter-la before his watch?

    -All right, so what is happening out there, is that you create a new ArrayCollection collection object which (being again) has no filter function. All you have to do in the result handler is the value of the function of filter and then apply the filter with a refreshment.

  • Need a bit of help with the string read/write DLL

    I have a DLL that communicates via RS232 with some instruments.

    From 2 numbers (parameter number and a number of processes) the DLL will communicate and extract the values.

    I managed to put in place the DLL to get words, characters, long and floats (single precision).

    Now, it is the documentation that accompanies it for strings:

    ReadString asks the DLL to get the data of the instrument, if succesfull I have others on call GetString to get the string memory.

    I have a few questions:

    -The values of her star (*) are pointers; As I understand it that it points to a place of memory where the value is stored, is - that correct?

    -How do I know if I pass the value to the DLL, or read? For example with GetString Im not sure if

    I should pass the length of the string to the DLL or if it is read

    -How to get the character returned in a string; IM assuming I need to find somewhere a byte array.

    Now I can also write strings:

    As a matter of f:

    -Should I add NULL at the end of the string, or labview does by default?

    My procedure is now: read the input chain, reduce it to the size of the specified string (this is constant according to the setting of the instrument), converted to a byte array and replace the last element of the array with 0 (Null).

    However, the DLL entry expected a character, that I should get in the DLL?

    _Faust wrote:

    I have a few questions:

    -The values of her star (*) are pointers; As I understand it that it points to a place of memory where the value is stored, is - that correct?

    They can be pointers or buffers. Which of the two is ambiguous in the syntax of C. However, in your case I suppose that piMsgId and pcLen be a pointer to a unique value and pszDest a string buffer.

    -How do I know if I pass the value to the DLL, or read? For example with GetString Im not sure if

    I should pass the length of the string to the DLL or if it is read

    Description is not really clear however most of the C API require today the length of the allocated buffer at the entrance to make sure that they don't overrun the buffer length. They may or may not change this value before returning to indicate the amount of data they actually informed. The pcLen parameter passed by reference probably indicates that this function does this way.

    -How to get the character returned in a string; IM assuming I need to find somewhere a byte array.

    It is not necessary. You can simply set the parameter to a string and must be passed as a C string pointer. In LabVIEW 8.5 or more you can also configure to resize this string for the number of characters as indicates it a different setting of the library to compose the node (CLN), in this case your pcLen. 8.5 you can use a table to explicitedly initialization function create a table Bbyte of the length needed, convert the byte array to string and pass to the CLN parameter. LabVIEW will return automatically only the part of the string up to the NULL character if a CLN is configured as C string pointer

    Now I can also write strings:

    As a matter of f:

    -Should I add NULL at the end of the string, or labview does by default?

    No! If you configure the parameter is a string, passed as a string pointer C, LabVIEW will do it automatically for you.

    My procedure is now: read the input chain, reduce it to the size of the specified string (this is constant according to the setting of the instrument), converted to a byte array and replace the last element of the array with 0 (Null).

    However, the DLL entry expected a character, that I should get in the DLL?

  • Static IP configuration on a WRT610N, need a bit of help please

    173.15.62.62 bridge

    . 61. 57 subnet

    Define the Internet to use the static IP... then enter the path of the door, DNS, etc. I guess the IP address is 173.15.62.61 (OR any of my usable subnet to. 61-. 57)

    Now, the value OFF, DHCP and NAT off (correct?)

    So here's where I'm stumped, under the configuration of the network address of the router, who goes there? His game for internal 192.168.1.1 and mask 255.0... would this need is the address I have set up under "IP address"?

    Also, there is no way to run my static IP with DHCP correct subnet still active? Wanting to make some box is not foreseeable on the netowrk, ala 10.10.x.x

    Thanks for the help...

    Chief

    Yep, NAT or disable does make a difference... but its THERE.

  • Trying to recreate this logo for a client... need a bit of help

    The company cannot find the files of original project, of course, and I'm not so amazing in Illustrator immediately. I don't get a great result in the record of the image. I know that the police are Rockwell STD and looks like he has a bow. I do not understand how to create the black shadow or extrusion behind the letters.

    Can anyone offer a vision a bit?

    Spirit Sports 2010-2011.jpg

    Since it is a logo, you would need to keep it as simple as possible and expand the effect 3D anyway.

    So what you can do is: make sure shading flat is on the 3D effect (or no shading) and then object > expand appearance. Gives you simple curves (but there might be a lot of clipping masks that you release as well).

    Then, you can color the paths that you want and of course their race and refine.

  • NEED A BIT OF HELP

    Hi I have a compaq persario model 6000 when I install the windows xp disk it keep restarting ing or freeze the screen have need help an i see when I turn the pc off my mouse lite lit. MORE INFORMATION

    Hello Mooky_Duke,

    Thank you for the updated information. The only thing I can find on your computers operating system is the desktop PC Compaq Presario 6325, 6325 Compaq Presario desktop PC cl-cl, which seems to indicate that your system came with Windows XP. So the Drivers of Compaq Presario 6325 cl desktop PC, which indicates that there are drivers for your computer that is running Windows 2000 and Windows XP.

    I hope this helps you. Thank you evening post on the HP Forums. Have a great weekend!

  • Need a bit of help [can't drag photos into folders of Collections]

    When I import my photos into Lr for my drive hard I can't click and drag and drop them in one of my folders of Collections.

    You must point your mouse to the center of the photo, and then drag it in the desired collection.

    Related issue:

    I can't click and drag and drop them in one of my folders of Collections.

    The collections are not folders. Records are not collections. You must understand the difference in order to use Lightroom efficiently.

  • Need a bit of help on vSphere bypass network

    Hi all

    I'm new, please bear with me if this question is stupid.

    I want to know if there is a way to share "invited a network in a BONE connection" with all of the server VM.

    I am running a vmware 5.5 hyper-visiere (type 1) on a laboratory server, which is equipped with a single Ethernet NIC card. And I have another D-LINK external wireless network card at hand which requires drivers (provided on a cd) windows must be installed to use the device.

    I created an OS (win 7 pro 64-bit) guest in the environment and installed D-LINK drivers inside the guest operating system can use the NIC without external wire to the network, then I disconnected the Ethernet cable connected to the server.

    Now the situation is I have more connection ├a use vSphere to manage the VM server, but I could still access the guest OS mstsc (remote desktop windows) since the guest OS is using the NETWORK card wireless attached on the server.

    Yes, it will be a problem for me to keep the Ethernet cable to the server 24/7, so I hope to find a way to use the NETWORK card wireless (currently used in a guest operating system) to manage the connection vSphere and support I hope that all network traffic for the server and all its guest OS.

    PS: I assume that the wireless NETWORK card will not work unless the windows driver is installed, and I think that the VMware hypervisor cannot start windows applications in? I also tried to add the NETWORK card wireless in vSphere as another device, but it did not work, I remember well.

    I hope that I have described sufficiently explanatory problem, I am happy to provide more details on the system.


    BTW, sorry for the bad English.

    Thanks in advance.

    Blut

    Hello

    I'm afraid that it is not possible to do what you tried to.

    As a solution to a lab environment, you can install Windows as your primary operating system on the system and install the vSphere Hypervisor inside a VMware Player or workstation as a Virtual Machine.

    In this way, your ESXi-VM could use wireless LAN from the windows of the host.

    This is called "nested virtualization" and is quite common in the lab environment at home where you have a large number of servers or server, which is not supported by VMware.

  • Navigation bar by tabs XHTML - need a bit of help

    Hello

    I have trouble to get a system of CSS tabbed browsing in Firefox 2 (on PC). Makes good in IE6 +. The construction can be found here: http://www.cpfm.com.au/entry.htm .

    Navigation tab itself stays highlighted while its associated page is currently viewing, however the in Firefox 2 I can't force the color of text in the white nav button (#FFF).

    All styles are applied to the primary navigation system are grouped in the style sheet. Styles can be found here http://www.cpfm.com.au/css/styles.css

    A second set of eyes looking at this would appreciate. A fix would be much appreciated.

    Thanks in advance,
    JD

    The problem is now resolved.

Maybe you are looking for

  • Satellite A300-IH load Vista slowly

    Hello I just bought the laptop satellite A300-IH, but this computer is very slow to load vista Home premium.When I turn on my pc, I have to attend 3-4 minutes until I use the pc. I have not install the software. Help, please!

  • SBS2011 based WS2008R2?

    I have installed SP1 SBS2011. I have a CAD program that I want to load. The seller Cad said they don't support WS2008R2. SBS2011 based WS2008R2 with other added features or is a light version of WS2008R2?

  • White lines now appear on photos scanned after many analyses of the quality. Problem?

    Scanner large Format - Windows Vista - HP Officejet 7500 did good job with a lot of pictures but now 3 or 4 white lines appear in each of them.  Ideas?

  • Missing ALTER TABLESPACE syntax... STRATEGY TO ADD DEFAULT ILM

    Hi allI'm checking the syntax of the statement:ALTER TABLESPACE tbs1STRATEGY TO ADD DEFAULT ILMSTORE COMPRESS ADVANCED SEGMENT LINE AFTER 30 DAYS OF ACCESS LOW;The statement of work, but I found this syntax in the SQL (version 12.1) reference.   The

  • Running a Mac OS Terminal ExtendScript file

    There are many flavors, response to this out there, that none doesn't seem to work for me. Let me say from the outset that my terminal (I'm in Yosemite) recognizes neither '-cmd' nor '-run ' or '-r'.So, here is the breakdown:1. I am able to launch AE