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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:18:25+00:00 2026-06-14T11:18:25+00:00

I have a row of items with a close X float right. I want

  • 0

I have a row of items with a close X float right. I want to have the entire row get hidden (well, removed, so not sure if there is something for that?) when the X is clicked.

However, it doesn’t work for me. It is seemingly simple code, so not sure where I am going wrong. I even took the EXACT code from this question: jQuery – Can't hide parent. And it still doesn’t work.

What am I doing wrong here?

http://jsfiddle.net/2kYrU/9/

HTML:

<div class='row'>
    <div class='close'>
    </div>
</div>

CSS

.row {   
    background:black;        
    width:200px;
    height:30px;
    cursor:pointer;                
}

.close {
    background:red;            
    width:20px;
    height:20px;
    float:right;
}

jQuery:

$(document).ready(function() {

    $('div.close').click(function(){

        $(this).parent.().hide();
    });

});

Any help appreciated. 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-14T11:18:26+00:00Added an answer on June 14, 2026 at 11:18 am

    You have a typo:

    $(this).parent.().hide();
                  ^
    

    Remove that dot and everything works: http://jsfiddle.net/2kYrU/11/

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

Sidebar

Related Questions

Can we have alternate Row color to GtkMenu items? and how to increase menu
I have a ListView with some items. I have toggleButton in each row of
I have a row collection (DataRow[] rows). And I want to import all rows
I have a multiple items form which does not mention the ID of the
I have a list of items I want to output as the contents of
I have the following html: <label wicket:id=drugSearchResult.row.item.label for=drug_1>[Drug XYZ] <span wicket:id=drugSearchResult.row.item.info>[Information, Price, Other]</span> </label>
Imagine you have a normal table view where each row is an item on
I have a table in mysql with a row called 'newrelease'. If the item
I have a list, each row consisting of a main item and subitem. I
I have 3 row data in UIPickerView that is timeHour, timeMinute, timeSecond. How 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.