Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6729025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:14:23+00:00 2026-05-26T10:14:23+00:00

I am wanting to pass a variable through to another form that will reveal

  • 0

I am wanting to pass a variable through to another form that will reveal itself when a certain radio button is clicked. However not sure the best way to do this as do not want to refresh the page.

the javascript for the form opening is:

$(document).ready(function(){
    $(".col3flex").css("display","none");
        $(".category").click(function(){

        if ($('input[name=category]:checked')) {
            $(".col3flex").slideDown("fast"); 

        } else {
            $(".col3flex").slideUp("fast");  //Slide Up Effect
        }
     });
});

what i need to do now, is pass the radio button value to be picked up by my php select statement in order to display the correct values.

How would i implement this please

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:14:23+00:00Added an answer on May 26, 2026 at 10:14 am

    I believe that you’re having trouble with the event handler and then checking for the value of the radio button. I think this is what you need (I assume that “.category” is the radio button?)

    $('.category').change(function() {
    
        if ($(this).val('checked') === 'checked') {
            // do whatever...
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am wanting to use NSClassFromString() to pass a string to so that will
I am wanting to pass a variable to a jquery dialog window. I am
I'm wanting to pass data from one php page to another on click, and
I have an issue with IE7 not wanting to pass a pickled object through
I'm wanting to get the full value of a char[] variable in the VC6
I am wanting to pass something like the following to my view from my
I'm wanting to make sure I understand pass-by-value vs pass-by-reference properly. In particular, I'm
A couple of times I've found myself wanting a zip in Haskell that adds
I'm implementing a form based on Ryan Bate's [always excellent] Railscast, #52, Update Through
I'm writing a class library that will offer some asynchronous processing, and want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.