Activate Greybox Popup With Radio Button Click

Dec 18, 2009

I'm designing a quiz page with feedback that is supposed to appear in a popup window. Here's a sample page: [URL] (Fix the link; I can't post proper links until I've been here a bit longer.) I'm using the Greybox popup window library to display the feedback. I know the popups work if I use links, but I need the popups to appear when a the radio button is checked.

According to the Greybox reference [URL], the onclick event should have the form:
GB_showCenter(caption, url, /* optional */ height, width, callback_fn)
I tried inserting this into the radio button code:
<input name="question" type="radio" id="ansA" onclick="GB_showCenter('Answer', feedback/feedback1-1.htm, 250, 400)" />
But it doesn't do anything. How do I trigger the popups with a radio button click?

View 3 Replies


ADVERTISEMENT

Radio Button Activate Field (Not Greyed Out)

Sep 26, 2011

Go here: [URL] How to accomplish this and send this data to a mysql column! The field will not grey out in i.e.

View 3 Replies View Related

How To Use Radio Button To Activate Selective Field

Oct 20, 2009

How can I use radio-button to activate the selective field on a form using perl/cgi?

View 1 Replies View Related

Radio Buttons - Get The Image To Display Whenthey Click On The Radio Button

Feb 28, 2010

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?

View 3 Replies View Related

JQuery :: Dynamically Add Radio Button - Handler To My Form On A Button Click ?

Jul 13, 2010

I am trying to produce a web form to allow wedding guests to RSVP. The form allows them to enter a name and select from a radio button whether they will be attending or not. If they select the "yes" radio button then a further pair of radio buttons are displayed for their meal preference.

They can then click a submit button or they can click another button to add another line for another guest which operates in exactly the same way. I've almost got this working, but it seems that the checkbox change handler is lost for the current guest when a new guest is added and the checkbox value is reset. I've got a feeling I'm doing something stupid but can't for the life of me figure out what.

Code (source file (renamed to .txt) also attached as I'm not sure the pasted code is too clear):

View 2 Replies View Related

Output The Value Of My Radio Button When Click?

Aug 5, 2011

how to show the value of my radio button when click.I have this code:

<tr><td width="10px"></td><td width="60%">Neatness</td>
<td width="40%">
<input name="neat" type="radio" class="hover-star" value="1" title="Poor"/>[code]....

say when my 1st radio button it will show 1 or so on.. How can I achieve this? Or better yet does anyone know hot to do this in jquery.

View 1 Replies View Related

Disable Radio Button On Click

Aug 23, 2010

is it possible to set the radio button disabled on clicking the submit button

View 3 Replies View Related

JQuery :: Use <td> As A Radio Button, Highlight On Click?

Dec 22, 2010

I am currently building a rubric system, basically a <td> will have a set of rating option, with a radio button. so when a user clicks on td tag in a table, i want to only highlight the td and select a radio button its similar to irubric assessment rating system

View 1 Replies View Related

JQuery :: Click Event On A Specific Radio Button?

Dec 5, 2010

I can't figure out the exact selector I need:

I've got 2 radio buttons, and only want an onclick event from the second one.

<label>First <input type="radio" id="radioSelect" name="volType" value="one" /></label>';
<label>Second <input type="radio" id="radioSelect" name="volType" value="two" /></label>

[Code]....

View 1 Replies View Related

JQuery :: Show/hide On Radio Button Click

Aug 4, 2009

I'm trying to do a show/hide on a radio button click and I do have it working, but I'd like to make it more...extensible/independent of hard- coding children elements to show hide.

My dummy html structure is:

I left some commented out stuff at the top of the function, hopefully to give you an idea of what I tried.

In particular:

I was trying to get the first ul (the children to show/hide) on "this" (the radio button clicked). I'd like this to be flexible to where you could add more radio button/children and as long as the structure stays the same, the show/hide functionality works.

View 2 Replies View Related

JQuery :: Change Form On Click Of Appropriate Radio Button

Nov 3, 2011

I am new to jQuery. I want to change the form on click of the appropriate radio button.

This is my code
<s:radio name="radioButton" list="#{'os':'OS','platform':'Platform''}" value="1" />
<div id="OS_req">
<s:form name="sendreqOS" action="Login" ><br/>
<s:textfield name="vmNameOS" maxlength="30" size="20" label="VM Name" />
<s:select labelposition="left" label="Template" list="temp" name="templateNameOS"/>
<s:select labelposition="left" label="Instance Type" name="instanceTypeOS" list="#{'1':'Small','2':'Medium','3':'Large'}" />
<s:select label="Duration of use" name="durationOS" list="#
{'1':'1 week','2':'2 weeks','3':'1 month','4':'3 months','5':'6 months'}" />
<s:submit value="Submit"></s:submit>
</s:form></div>
<div id="Plat_req">
<s:form name="sendreqPlat" action="Login" ><br/>

<s:textfield name="vmNamePlat" maxlength="30" size="20" label="VM Name" />
<s:select labelposition="left" label="Template" list="temp" name="templateNameplat"/>
<s:select labelposition="left" label="Instance Type" name="instanceTypeplat" list="#{'1':'Small','2':'Medium','3':'Large'}" />
<s:select label="Duration of use" name="duration plat" list="#{'1':'1 week','2':'2 weeks','3':'1 month','4':'3 months','5':'6 months'}" />
<s:submit value="Submit"></s:submit></form></div>

On clicking 'OS' radio button I want to get the 1st form and hide second one and on clicking 'Platform' radio button I want the second form and hide the first one.

View 13 Replies View Related

Click Checkbox Or Radio Button To Reload Page?

Aug 23, 2005

I want to be able to click on a checkbox (or a radio button) and have it reload the page, but also keep the item selected. The code I currently have reloads the page but does not check the checkbox or select the radio button. The code is:
<form name="myform" method="post" action="thispage.htm">
<input type="checkbox" name="checkbox" value="checkbox" onClick="javascript:window.location.reload()">
</form>

View 5 Replies View Related

JQuery :: Reset Radio Button Group With Click Event

May 13, 2011

I have got a radio button group. A click event have to reset it that the first radio button is checked again.
<input type="radio" name="msgtype" value="1" checked="checked" /> Gruß
<input type="radio" name="msgtype" value="2" /> Wunsch
<input type="radio" name="msgtype" value="3" /> Frage
That doesn't work so far:
$('#cleaner').click(function(){
$("input[name='msgtype']").filter("[value='1']").attr("checked","checked");
});

View 1 Replies View Related

Script To Highlight Text Field With Radio Button Click?

Jul 12, 2009

I am doing donation script. Here is my script so far

<script type="text/javascript">
<!--//
function chkDonation(){
var form = document.forms[0]; // FORM NAME OR PLACE IN FORMS COLLECTION //;
var amount = form['OtherAmount']; // TARGETTED INPUT NAME ( OtherAmount ) //;
amount.style.visibility = 'hidden';
for(var i=0, input=form.getElementsByTagName('input'); i<input.length; i++){
if(input[i].type.match(/radio/i) && input[i].name.match(/DonationAmount/i)){
if(input[i].value.match(/Other/i)){
input[i].onclick = function(){
amount.style.visibility = 'visible'; .....

I have pretty much completed my script but now what I want it to do is to add more forms/field when the "Other" radio button is selected. So when the Other button is checked, I want the script to display more fields/forms below. Only when the "other" button is selected. When "other" selected the script should display fields like "cheque", "cash", "Payment" etc.

View 1 Replies View Related

Load Image On Radio Button Click - Without Reloading Page

Apr 28, 2011

I'm trying to make it so that when a user clicks on a radio button, the image that is related to the radio button is displayed next to it (without reloading the page). At the moment all it shows is the image related to the currently saved option, which I'd like to keep on page load. Is this possible?

Here is my code for the radio buttons.

View 3 Replies View Related

JQuery :: Disabling/unbinding Click Event On Radio Button When Already Selected?

Jul 14, 2011

I have set up a JSFiddle to demonstrate what is happening:[URL]... Basically if All content types is checked already and is clicked when checked then searchAjax should not be invoked. It currently invokes the function. When it is not checked and clicked then it should behave as it is now (disable sibling radio button and uncheck all associated checkboxes).

View 1 Replies View Related

JQuery :: Pass Radio Button Selection To Hidden Div And Then Show Div List From Chosen Radio Button?

Mar 16, 2010

I am a PHP programmer and new to Javascript and jQuery and I have tried about 20 examples/tutorials and cannot seem to get even close to what I want.I have a form (PHP/MySQL) with a list of subjects I got from my database, and then create a set of radio buttons from that list. And based on what radio button they select, I need to pass that variable to a div (at least that's what I want to use) and then show a list of videos that match the radio buttons value. I don't care if its a get or post or other.I tried to use GET or POST so I can use that value for my PHP/MySQL lists.I am open to any suggestions/tutorials, etc.

View 1 Replies View Related

JQuery :: Activate Tab On Click Of Href?

May 25, 2010

I have tabs in my JSP, tabs are in divs as:

<div class="tabs">
<ul class="tabNavigation">
<li><a href="#DALmy_overview_tab">Overview</a></li>
<li><a href="#DALmy_sizing_tab">Sizing</a></li>

[Code].....

Somewhere in my JSPi have a link onclick of which i need to activate a tab, what should be my jquery?

View 1 Replies View Related

Drop Down Menu Requires Click To Activate?

Oct 12, 2011

Okay, I've been searching through here for a day, but haven't quite found what I need. I'm rebuilding my client's site to update the code and get it off of Yahoo's CMS.My rebuilt siteis nearly complete, except the navigation. I want to keep the function that each menu requires a click to open, not just a hover. Unfortunately, the rebuilt site's menu doesn't function and it'll require absolute links to work in the various root and sub folders.This is one suggestion I found in the archives here, expand5.htm, but it doesn't quite look like what I need.I have other sites that are for persons with disabilities that this could be useful for, so I need to be able to reproduce the results.

View 9 Replies View Related

Activate The Submit Button ?

May 25, 2009

I created this form and then I call a function to validate what is in the form. That works fine, but I can't figure out how to activate the submit button. Actually, I don't really want the button to do that much right now except to call another web page.

The code is below, maybe I could get some assistance on this. I tried several ideas I found on the Internet, but none worked.

code:

html file:

javascript file:

View 2 Replies View Related

JQuery :: Activate A Click Dynamically On A Link And Also Call Another Function?

Apr 23, 2009

I have a link as follows.

<a href="march2009.html" onclick="return hs.htmlExpand(this,
{contentId: 'highslide-html-1', objectWidth: 600, objectHeight: 510,
width: 600})" id="leadershipMsgId" class="highslide whiteul">Message</

[code]....

View 1 Replies View Related

Radio Buton Hover Css - Background Color Only Draws A Box Around The Radio Button But Does Not The Actual Radio Color

Mar 24, 2010

l need to apply a hover css on a radio button. Currently the background color only draws a box around the radio button but does not the actual radio color. l dont mind if there is no css even javascript will do

View 1 Replies View Related

Clicking Radio Button Selects A Second Radio Button?

Feb 24, 2009

Need a script which selects a second radio button when the first radio button in the pair is clicked with the second button greyed/disable but still displaying the selection.

(Hoping to keep the input 'name' the same too if possible - maybe they can be differentiate by 'id' for the script ?)

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

[Code].....

View 11 Replies View Related

2 Radio Buttons And Submit - Make Each Radio Button Call A Different Page?

Jul 15, 2011

how I can make each radio button call a different page. For example If i click on radio button 1 and click submit it will take me to [url].... and if I click radio button 2 and click submit .

View 7 Replies View Related

Radio Buttons: Preventing The OnClick Event If The Radio Button Is Already Checked

Mar 23, 2009

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?

View 2 Replies View Related

Jquery :: Radio Buttons And Submit - Selected Radio Button's Value To Be Inserted Into The Href Of The Link??

Jan 20, 2011

I have 3 radio buttons with the same name ("myradio"). The value of each is a different URL (eg. value="http:[url]...)I have a link underneath these (<a href="#">Send</a>). I would like the selected radio button's value to be inserted into the href of the link, and if the user selects a different radio button that this changes.

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved