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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:50:24+00:00 2026-06-05T01:50:24+00:00

I am using HAML to implement a user display in a page %li %label.user

  • 0

I am using HAML to implement a user display in a page

%li
  %label.user
    %input{value: "<%= user.nickname %>", type: "<%= user.type %>", user_avatar: "<%= user.avatar_url %>"}
      %img{src: "<%= user.avatar_url %>"}
      .name <%= user.nickname %>

I have 2 user types, “friends” or “followings”. My intention is to find and hide all the ‘li’s with the type = ‘following’. How can I do this?

I tried with the following code to no avail.

@$('ul.inputs-list li').find('input').attr('type'=='following').hide()

Can anyone advise me on how to modify my code so that I can hide all ‘li’s with type=’following’?

  • 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-05T01:50:26+00:00Added an answer on June 5, 2026 at 1:50 am

    Use the attribute selector:

    @$('ul.inputs-list li').find('input[type="following"]').hide()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using haml to display the user's name and nickname (in a single
I am using jquery and haml to implement my application. I am displaying a
I'm using HAML to generate templates for a Backbone.js app. I need to be
I'm using HAML to generate some static html pages for a site, and I
I am using haml with my rails application and i have a question how
I am using Haml in a Ruby on Rails project. I know you use
I am trying to build a simple nested html menu using HAML and am
I'm having a hard time rendering a view in Haml,using MongoMapper for a small
I'm using CodeRay and Haml to do syntax highlighting on some pages, and I
I'm making HAML/SASS changes for a Rails app which I'm running locally using a

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.