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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:22:43+00:00 2026-06-16T00:22:43+00:00

Lets say I have <style> #container:hover{background:red} </style> <div id=container><input type=submit></div> When I hover on

  • 0

Lets say I have

<style>
    #container:hover{background:red}
</style>
<div id="container"><input type="submit"></div>

When I hover on submit, #container is still red. Can I remove that :hover on input mouseover with jquery? I do not want to change bg $('#container').css('backgroundColor','color'), I need something like $('#container').removeAttr('hover').

  • 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-16T00:22:43+00:00Added an answer on June 16, 2026 at 12:22 am

    Unfortunately it is impossible to manage CSS pseudo-classes with jQuery.

    I’d suggest you to manipulate classes, as follows:

    <style>
        .red:hover{background:red}
    </style>
    
    <div id="container" class="red"><input type="submit"></div>
    
    <script>
        $("#container").removeClass("red");
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Lets say I have some markup like this: <html> <head> <style type=text/css> #container {
let's say that I have some <TR style = background-color : red ;> and
Lets say I have the below: <Style TargetType={x:Type TextBox}> <Setter Property=BorderThickness Value=1 /> <Setter
Lets say I have a list like this: <ul style=list-style-type: upper-latin;> <li>Lorem</li> <li>Ipsum</li> </ul>
Lets say there is .myButtonClass{ /*#style;*/ } Now i have new <div id=myid> One
Lets say have this immutable record type: public class Record { public Record(int x,
I have a setup lets say like follows: <div id=nav> <div id=innernav> //With dynamic
Lets say I have a function in my model, that generates a style tag
Lets say I have a plugin's CSS which loads later as my style.css /*style.css*/
Let's say I have a container <div> with some buttons in: <div class=cont> <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.