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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:11:53+00:00 2026-06-13T11:11:53+00:00

into DIV: <div id=materialcolor></div> I must incject this dynamically generated code: <select class=groupsmaterialcolorsDDs name=group_6

  • 0

into DIV:

<div id="materialcolor"></div>

I must incject this dynamically generated code:

<select class="groupsmaterialcolorsDDs" name="group_6" id="group_6" onchange="putLayer(document.getElementById(this.id).value);">

    <option id="futura_perspective_merita_aubergine.jpg" value="76" selected="selected" title="Aubergine">Aubergine</option>

    <option id="futura_perspective_merita_bordeaux.jpg" value="100" selected="selected" title="Bordeaux">Bordeaux</option>

</select>

I do this via jQuery’s load() funcion from other location:

/ajaxcreator.php?product_id=14

Before AJAX’s request the function putLayer() in select’s onchane parameter works (It’s changing the other DOM’s elements – put a background from ids of this select). After AJAX Request – not.

I probably must refresh the DOM elements to try again modyfi them. How can I do this?

  • 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-13T11:11:54+00:00Added an answer on June 13, 2026 at 11:11 am

    you can use the jquery ‘.on’ function to make sure the event handler is always attached to all future ‘.groupsmaterialcolorsDDs’ in that div.

    example:

    $(‘#materialcolor’).on(‘change’, ‘.groupsmaterialcolorsDDs’, function(){

    putLayer(this.value);

    });

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

Sidebar

Related Questions

This code calls in the new data and places it into the div but
this is my code for taking external page into div using ajax what i
I am loading some text dynamically into a div, but have the problem that
I load 2 tables (header and data) dynamically into a div. I want the
i have successfully added input element into div, which looks like this : $(document).ready(function()
i have following code for inserting another page into div An XHTML 1.0 Strict
Snippet code to load the content of the template into the div (main.html): var
this is my main page html: <script type=text/javascript src=js/jquery.min.js></script> <div><a href=# class=MyClick>Parent Click</a></div> <div
I want to Load remote content into div element using jQuery, i used this
I am converting table structured data into div using below code. $('#content').html($('#content').html() .replace(/<tbody/gi, <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.