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 7681191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T18:17:09+00:00 2026-05-31T18:17:09+00:00

All right so I tried using the button set. So fair, I have been

  • 0

All right so I tried using the button set.

So fair, I have been able to transform them into links.
But, the thing is the radio buttons don’t keep their active state.

Here is the code of jquery:

$( "#radio" ).buttonset();

$("input:radio[name=radio]").click(function() {
var id = $("input[@name=radio]:checked").attr('id');
window.location.replace("player.php?id=<?php echo $id; ?>&action="+id);
}

Here is the code of the butonset + the PHP code behind my web page:

<form>
 <div id="radio" class="ui-buttonset">
 <input type="radio" id="season" name="radio" value="season" /><label                  for="season">Season</label>
 <input type="radio" id="playoff" name="radio" value="playoff" /><label for="playoff">Playoffs</label>
 <input type="radio" id="carrer" name="radio" value="carrer" /><label for="carrer">Carrer</label>
 <input type="radio" id="carrer_playoff" name="radio" id="carrer_playoff"/><label for="carrer_playoff">Carrer playoffs</label>
 </div>
</form>
</center>

<br/><br/>

<?php
 if($action == "playoff"){
 include("player_playoff.php");
 }
 else if($action == "carrer"){
 include("player_carrer.php");
 }
 else if($action == "carrer_playoff"){
 include("player_carrer_playoff.php");
 }
 else{
 include("player_season.php");
 }

?>

This is the web page:
http://uweave.ca/uw-perso/Aravinthan_Sivaneswaran/COD_Circuit-TW/public%20v2.0/player.php?id=1&action=season

Thank you for your help,
Ara

EDIT:
if($radio.is(‘:checked’) === false) {
$radio.filter(‘[value=]’).attr(‘checked’, true);
}
if($radio.filter(‘[value=]’).attr(‘checked’, true)){
alert(“IN”);
}

I did this to check, but it always alerts me with IN but it doesnt put it in checked ( active ) state…

  • 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-31T18:17:10+00:00Added an answer on May 31, 2026 at 6:17 pm

    After reading comments to your question, here is what you are looking for

    $(function(){
        $('input:radio[id="<?php echo $action; ?>"]').attr('checked','checked');
    });
    

    http://jsfiddle.net/seLTY/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using this table for a while now and all of a
I'm using the OnIdle-event for some simple animations, and it works all right. The
Right now all I am using to calculate the size are the files in
right now i am simply ftping everything (all of my source code included) but
I have a button set, and would like to set the width of each
I have a button on a page with an onClick I dynamically set via
All, 1.) I have a Dialog showing on my application. Right now it is
Using Rails 3.0.7. I have a simple form which shows all records from one
All right all, So I've got a UITableView that is inited in applicationDidFinishLaunching like
All right, I'll try to explain my problem as clearly as I can. I

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.