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

  • Home
  • SEARCH
  • 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 8327185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T01:01:15+00:00 2026-06-09T01:01:15+00:00

I use jQuery with the $.load() function to include markup (from separate file) in

  • 0

I use jQuery with the $.load() function to include markup (from separate file) in my main html file, index.html

For example, I load contact.html in:

<div id="bloc_load"></div> in 'index.html'

That works correctly.

The issue is, in contact.html I have:

<input type="button" id="button_of_contact">

This element is loaded in index.html but I cannot access it with:

$('#button_of_contact').click(function(){
    alert('Click');
});

If I view the source code in index.html after loading contact.html, I see:

<div id="bloc_load"></div>

The div is empty, so I think jQuery cannot access. How can I resolve this issue?

  • 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-09T01:01:16+00:00Added an answer on June 9, 2026 at 1:01 am

    Assuming the content is loaded :

    $("#bloc_load").on('click', '#button_of_contact', function() {
        console.log('click');
    });
    

    You will have to check the console to see the altered code with the loaded content, just right clicking and view source won’t show the added content.

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

Sidebar

Related Questions

I need to call some jQuery .load() function from flash. i Use this: import
I'm trying to use the .each() function of JQuery on a body load to
I wish to use a jQuery .load(oracle apex url) query. I have a main
I use jQuery and AJAX to load content from links and forms into a
We are using jquery to .load() a form into a div We then use
I am trying to load an external jquery page into a div. I use
I am trying to use the tabs function from jQuery UI in a Rails
I'm looking to use jQuery's .load() or .get() functions to replace AJAX, I've got
Ok I have this problem I'm trying to use Jquery to load a partial
I'm trying to develop a proof of concept where I use jQuery to load

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.