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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T07:05:43+00:00 2026-06-18T07:05:43+00:00

I have a form that is dynamically created, so I can’t edit the layout

  • 0

I have a form that is dynamically created, so I can’t edit the layout of the form itself. However, I want to add a title above one of the text input fields in the form. I have given that field a unique css ID and am using the following script to try and add my heading before it:

<script type="text/javascript">
$('<h5 class="form_title">Calculate Return</h5>').insertBefore('#price');
</script>

For some reason this won’t work though, can anyone think why that might be. Here is the page in question

http://www.theres-a-thought.com/client-yourdream/?page=property_submit

  • 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-18T07:05:45+00:00Added an answer on June 18, 2026 at 7:05 am

    Looking at your page, I don’t see where #price is defined. Maybe it is added later via JS and i missed it..

    You are using jquery in no-conflict mode, and you need to wrap your code in document ready..

    <script type="text/javascript">
    jQuery(document).ready(function() {
        jQuery('<h5 class="form_title">Calculate Return</h5>').insertBefore('#price');
    });
    </script>
    

    Running this; however, has no affect on the page(from what i can see).

    The code below works because the ID exists. It isn’t what you are trying to accomplish, but it should get you started.

    <script type="text/javascript">
    jQuery(document).ready(function() {
        jQuery('<h5 class="form_title">Calculate Return</h5>').insertBefore('#property_name');
    });
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a form that is dynamically created, on this form are several radio
I have a dynamic form that allow to add many fields dynamically, I Know
I have an array of form fields that are dynamically created. I am trying
Consider i have a dataGrid that is created dynamically. Now i need to add
I have items and buttons that are created dynamically and I want to show
I have a form field (a series of checkboxes) that's being created dynamically from
I have a dynamically created TextBox in a C#/ASP.NET web page that I want
I have a form that is dynamically created. It is a winForms application. This
I have a Winforms application that dynamically instantiates external form objects for use in
I have a Greasemonkey script that dynamically inserts an HTML form into some web

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.