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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:20:35+00:00 2026-06-10T18:20:35+00:00

This my half of the HTML code: <fieldset class=amenities> <legend>Amenities</legend> <div class=clr></div> <ul id=amenities>

  • 0

This my half of the HTML code:

<fieldset class="amenities"> 
    <legend>Amenities</legend>
    <div class="clr"></div>
    <ul id="amenities">
        <li class="amenity ">
            <input class="am-input" type="checkbox" name="jform[amenities][]" id="jform_amenities0" value="95"  />
            <label class="am-title" for="jform_amenities0" ></label>
        </li>
        <li class="amenity ">
            <input class="am-input" ...............

This is my jQuery code:

$("label[for='jform_amenities5']").addClass("selected");
$("fieldset input:radio").remove();​

This is the demo.

I just want to remove all radio buttons from the site. I used the .remove() function but nothing happened. How can I do this ?

  • 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-10T18:20:37+00:00Added an answer on June 10, 2026 at 6:20 pm

    To remove the checkbox with label having text = radio you have to do something like this,

    Live Demo

    $("label[for='jform_amenities5']").addClass("selected");
    lbl = $("fieldset label:contains('Radio')");
    $('#'+ lbl.attr('for')).remove();
    $("fieldset label:contains('Radio')").remove();​​​​​​​​​​​​
    

    If you want to remove the type = radio which you tried in code then you have to use checkbox instead of radio as there is not radio control in your code

    $("label[for='jform_amenities5']").addClass("selected");
    
    $("fieldset input:checkbox").remove();​
    

    Live Demo

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

Sidebar

Related Questions

I have a html select syntax like : <select id=salary_structure_salary_structure_line_items_attributes_0_payhead_id class=half name=salary_structure[salary_structure_line_items_attributes][0][payhead_id]> <option data-payhead=Earnings
Why is my gray div only showing half? This is my code :- <!DOCTYPE
I have this code <html> <head> <style type=text/css> .frame {width: 50em; border: 1px solid
So I have some html like so: <div id=avatar_choices> <label for=id_choice_0> <input id=id_choice_0 type=radio
This bit of code is taking almost a half second to execute. Could somebody
When I run this code, About half-way through the concatenation loop, $xml becomes null
I'm using this code to validate an input field, but I don't want it
I have this jQuery code: <script type=text/javascript> $(document).ready(function() { $('.vote_up').click(function() { alert ( test:
I've got a JSP page like this: <html><body> <div id=mainContainer> <div id=firstDisplayStuff>...</div> <% out.flush();
I have a problem with div loading/fading.. This is my html. <div id=email_response> <div

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.