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

  • Home
  • SEARCH
  • 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 9126669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:05:39+00:00 2026-06-17T07:05:39+00:00

I am trying to mimic the HTML form present on this link: http://maati.tv/uploads/ I

  • 0

I am trying to mimic the HTML form present on this link: http://maati.tv/uploads/
I am making it to put on a company’s Facebook page.

Now, the issue I am running into is that I am unable to display different fields depending upon the select radio button. I know it requires JavaScript. I’ve got the related script from this link: https://stackoverflow.com/a/14127709/1315163

$(".radioSelect").each(function () {
  showSpecificFields(this);
});

$(".radioSelect").click(function () {
  showSpecificFields(this);
});


function showSpecificFields(obj) {
  if ($(obj).is(":checked")) {
    var radioVal = $(obj).val();
    $(".fieldsSpecific").each(function () {
      if ($(this).attr('id') == radioVal) {
        $(this).show();
      } else {
        $(this).hide();
      }
    });
  }
}

Can anyone please help me with it? Rest of the code is in this jsFiddle: http://jsfiddle.net/DDJNc/2/

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-06-17T07:05:40+00:00Added an answer on June 17, 2026 at 7:05 am

    Your answer:

    $(".radioSelect").each(function(){
        showSpecificFields(this);
    });
    
    $(".radioSelect").click(function(){
       showSpecificFields(this);
    });
    
    function showSpecificFields(obj){
        if($(obj).is(":checked")){
        var radioVal = $(obj).val();
         $(".fieldsSpecific").not('.'+radioVal).each(function(){
             $(this).hide(); 
         });
         $(".fieldsSpecific."+radioVal).each(function(){
             $(this).show(); 
         }); 
        }
    }
    

    Check the HTML also

    http://jsfiddle.net/DDJNc/4/

    . (dot) css selector selects elements containing a given class. That class SHOULD BE present on your HTML for it to work!

    Don’t use the id attribute for that because you are trying to match a set of elements that belong to a class and not a single element.

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

Sidebar

Related Questions

I'm trying to mimic the login page from the example http://tipfy-auth.appspot.com (source http://code.google.com/p/tipfy/source/browse/examples/auth/app/ )
I am trying to mimic std::map<string, std::list<string> > in VBA (this case is very
I'm trying to mimic a reddit feature. When you link to a specific comment
This is long but I promise it's interesting. :) I'm trying to mimic the
Using this site as a reference. Trying to mimic this effect using JavaScript, hover
Hi I'm trying to migrate my HTML/PHP/JS/XML page into one php file. I was
I am trying to mimic the search bar at http://grooveshark.com . I having almost
I am trying to write some kind of raw html to mimic what spring
Trying to mimic the browse catagories in the following link https://dev.twitter.com/discussions onmouseover -- the
I am trying to mimic the following page in terms of the fixed header

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.