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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:56:29+00:00 2026-06-06T08:56:29+00:00

I am using the WordPress theme Studio8 and I have create some custom forms

  • 0

I am using the WordPress theme Studio8 and I have create some custom forms in pages loaded by custom URL Rewrites.

The problem is, while the HTML is Valid and with no errors, when the pages are loaded, through the jQuery $.load('URL Selelcor') moves the

<input type="submit" id="submit" value="Submit" />

outside the form.

My form looks like that:

<form attributes....>
    ....
    <input attributes .... />
    ....
    <input type="submit" id="submit" value="Submit" />
</form>

and the HTML result is like that:

<form attributes....>
    ....
    <input attributes .... />
    ....
</form>

<input type="submit" id="submit" value="Submit" />

Any idea on how to solve that issue ?


Another way I am thinking to solve that issue, is to check if the form is loaded, and then if the form does not containa submit button to add on with JavaScript.

The problem now is that I have to check if the form exists, after the AJAX load. In example, for the other events on form elements I use the

$('element_selector).live('event_name', function(){});

In my case how can I check if the form has a submit button after the AJAX load ?

  • 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-06T08:56:31+00:00Added an answer on June 6, 2026 at 8:56 am

    Weird, here is an idea though:

     $(document).ready(function()
     {
          $('input[type="submit"]').live("click",function()
           {
               $('form').submit();
           });
     });
    

    This should make the existing button submit your form. You can add the id on to it to prevent it from submiting all the forms on the page.

    To check if it is there and add it if you want you could use:

    $(document).ready(function()
    {
          if(!$("form").find(':submit').attr("value"))
          {
              $("form").append("<input type=\"submit\" value=\"Submit!\" />");
          }
      });
    

    See this jsFiddle.

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

Sidebar

Related Questions

Hi I have a theme on wordpress using phpThumb. And some images are not
I am building a new WordPress theme using register_post_type to create a custom post
Anyone with experience using jPicker colorpicker in a WordPress Custom Theme options panel. I
I am writing a wordpress theme, and have run into a fairly basic problem.
I am using wordpress twentyten theme. and in this i have set search widget.
I am using a custom post type in my wordpress theme, and I need
I am building a custom wordpress theme and have a slideshow on the front
I have been working on a custom wordpress theme, this is part of a
I have a WordPress theme and I'm using a few jQuery plugins within it.
I'm working on my own custom WordPress theme, using a blank, default template to

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.