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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:54:14+00:00 2026-06-14T10:54:14+00:00

My HTML <span class=lead_button> <img class=NFButtonLeft src=/templates/web/images/0.png> <button type=submit class=NFButton id=cf_ce-submit-button>Send</button> <img src=/templates/web/images/0.png class=NFButtonRight>

  • 0

My HTML

<span class="lead_button">
  <img class="NFButtonLeft" src="/templates/web/images/0.png">
  <button type="submit" class="NFButton" id="cf_ce-submit-button">Send</button>
  <img src="/templates/web/images/0.png" class="NFButtonRight">
</span>

What I am trying to do is, when some one hover over the span I want to add appednd a class called NFh to the images and button . So the final output will look like this

<span class="lead_button">
  <img class="NFButtonLeft NFh" src="/templates/web/images/0.png">
  <button type="submit" class="NFButton NFh" id="cf_ce-submit-button">Send</button>
  <img src="/templates/web/images/0.png" class="NFButtonRight NFh">
</span>

How can I achieve this with jQuery? Thanks heaps.

  • 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-14T10:54:16+00:00Added an answer on June 14, 2026 at 10:54 am

    This is exactly what you need.

    <script>
    $(document).ready(function() {
        $('.lead_button').hover(function(){
            $(this).children().each(function(){
                $(this).addClass("NFh");
    
            });
        });
        $('.lead_button').mouseout(function(){
            $(this).children().each(function(){
                $(this).removeClass("NFh");
    
            });
        });
    });
    </script>
    <span class="lead_button">
        <img class="NFButtonLeft" src="/templates/web/images/0.png">
        <button type="submit" class="NFButton" id="cf_ce-submit-button">Send</button>
        <img src="/templates/web/images/0.png" class="NFButtonRight">
    </span>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this html right now: <h1><span class = 'highlight'><input type='image' class='removeall' src='remove.png'> <input
I have the following HTML: <div class=item> <img src=http://mintywhite.com/images/wg/0904/05rssfeedicons/rss-feed-icons11.jpg/> TEXT NODE <span class=some_class>What the
The following gives me the error Uncaught SyntaxError: Unexpected identifier : $('span.xtro').html(''); $('span.xtro').html('<input type='button'
I want to generate html like, <label for='field'> Label Text <span class='span1'> Some Text
http://jsfiddle.net/GGsEt/3/ Works on firefox HTML <ul> <li class="lib_undefined"> <span class="hidden_toggle"> <a href="/">Test</a> </span> </li>
Consider the following code: $(document).ready(function() { $(body).append(<div class='outer'><span class='inner'>Click me</span></div>); $(html).click(function(event) { var targetClass
I have the following html : <div class=mainmenu> <ul class=blue> <li class=><a href=tst/ id=a1_up><span
i have this html: <span class=price> $61.00 <span class=detailFreeShipping>With Free Shipping</span> </span> How to
I have an HTML span which changes it's class onmouseover and onmouseout: <span id=someSpan
Given the following HTML on a page: <div class='test'> <p><span id='id1' class='test1 test2 test3'>test

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.