JQuery :: If Radio Button Checked Display Div #something Else Display Nothing If Unchecked?
Mar 19, 2011
if radio button checked display div #something else display nothing if un checkedcurrently I have this and it works but when I click another radio option the div that was activated before stays there. Want a div to show only if certain radio button is checked and if not checked to hide.
Im trying to configuere a form that a.a radio buttons that allow the user to choose between quarters, nickels, dimes and pennies and show image when click on my radio button.how to get the image to display whenthey click on the radio button?
I have a form with 5 radio buttons. Each of them has an integer value. and below I have a text form field which is read only. When a radio button is selected, I need its value to be displayed in that field.
radio button to be displayed in a table on that same page. so if someone select option 1, it would display option 1's value in the table at the bottom of the page. I know i could do this in php when i submit the form but I need the application to not need to refresh the page if possible. Below is a link to where i have the application and here is the code.
I need a script that will allow a user to select a vertical selection and Horizontal selection that displays a corresponding image. There are only 8 combinations (4 vertical choices and 2 horizontal choices) I just need to display the correct image and a description. There has to be only one of each selected and only display one image.[URl]..
The following code will output numerical values only for the <label>. I need it to display text with multiple characters. For example: I own two exceptional chickens...I own four or more chickens...etc. Again the code works perfectly but only for numbers.
I want to be able to display the a 12hr clock, or 24 hr clock depending on which radio button is selected, but I cannot get the code to work.
Basically I have a form with several questions followed by Yes/No radio buttons. Dependent on which answer is given, I want to display a different message above the text box.
For example, if you answered 'no' to a certain question then the message above the text box would change to say "Please fill in additional information" or something along those lines.
I have a set of radio buttons each with an onclick event that has a numeric value. When the button is clicked an input box called "Total" is updated with the new value. The problem I'm having is that if a radio button is checked and one clicks on it again then the onclick event is triggered.
Is there any way to prevent the onclick event from triggering if the radio button is already checked?
I'm having a bit of trouble getting the checked radio values from my form so I can submit them via AJAX. The main problem is, I do not know what the name is going to be, and there could be any number of them. Here is a basic example of the HTML code (It is dynamically generated).
<form id="addnew"><input type="hidden" name="clientid" value="1" /> <table class="clientareatable" align="center" cellspacing="1"> <tr class="clientareatableactive"> <td>This is a test question 1</td>
I'm trying to reset a form so that no radio buttons are selected. The code works in Firefox 3.5.7, Chrome 3, and Safari 4.0.3. However, in IE 8 only the 1st radio button is correctly cleared. If I check the 2nd radio button and click the clear button, the 2nd radio button IS NOT cleared. The following HTML should reproduce the issue. Can others reproduce this? [code]...
I'm trying to figure out if it makes sense to use jQuery to do the following. I have a form with several checkboxes. If one particular checkbox is checked, I'd like a required dropdown field to appear. Is this something fairly straightforward to do with jQuery?