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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:23:15+00:00 2026-05-27T14:23:15+00:00

I have a list of blocks, for each block their is a css change

  • 0

I have a list of blocks, for each block their is a css change by jquery on mouseover/out.

I have a button that is job is to add one more block to the list.
It do it great! But the new block not respond to the mouseover/out jquery set.

This is my blocks and the add:

        <div class='blocks'>
            <div class='block'>
                <div class='block-top'></div>
                Default Text Here
            </div>
            <div class='block'>
                <div class='block-top'></div>
                Default Text Here
            </div>
            <div class='block'>
                <div class='block-top'></div>
                Default Text Here
            </div>
        </div>
        <a href='#' id='addBlock'>Add Block</a>

And this is the javascipt:

$(document).ready(function() {
            var inEdit=0;
            $(".block").hoverIntent(function() {
                if(inEdit==0) {
                    $(this).children('.block-top').delay(300).animate({opacity:1},600);
                    $(this).delay(300).animate({borderColor: '#8f8f8f'},600);
                }
            },function() {
                if(inEdit==0) {
                    $(this).children('.block-top').animate({opacity:0},200);
                    $(this).animate({borderColor: '#ffffff'},200);
                }
            });
            $('#addBlock').click(function() {
                $('.blocks').append("<div class='block'><div class='block-top'></div>Default Text Here</div>");

            });
        });

I’m using this two scripts:
http://www.bitstorm.org/jquery/color-animation/
http://cherne.net/brian/resources/jquery.hoverIntent.html

What can I do?

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-05-27T14:23:16+00:00Added an answer on May 27, 2026 at 2:23 pm

    If you wish that future elements benefits from the event, you have to use on : http://api.jquery.com/on/

    For instance :

    $('#addBlock').on('click', function() {
        $('.blocks').append("<div class='block'><div class='block-top'></div>Default Text Here</div>");
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have list of rows that user select and i want to delete them,
I have list of catalog paths and need to filter out some of them.
Possible Duplicate: Does std::list::remove method call destructor of each removed element? I have a
I have some 2k files to compare block by block, but these blocks identified
I have written a simple, working tetris game with each block as an instance
I have a block like : - competitors.each do |competitor| %dl %dt ... %dd
Total Novice here. I have some list items. I need to add a class
In an app, Users and Cases have a many-to-many relationship. Users pull their list
I have a list of friends, (BOB, TINA, LISA, TERRY, MIKE) and each listed
Using Doxygen 1.7.4 Sometimes I'll have a block of public member functions that belong

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.