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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T15:08:26+00:00 2026-05-14T15:08:26+00:00

Must be really dumb today – sorry in advance; anyhow have this unordered list

  • 0

Must be really dumb today – sorry in advance; anyhow have this unordered list

<ul>
<li><div class="openuserform" >Info</div> <div class="userform"></div></li>
<li><div class="openuserform" >Appearence</div> <div class="userform"></div></li>
<li><div class="openuserform" >Pages</div> <div class="userform"></div></li>
<li><div class="openuserform" >Services</div> <div class="userform"></div></li>
<li><div class="openuserform" >Community</div> <div class="userform"></div></li>
</ul>

which on click <div class="openuserform" > I want to load a separate form e.g.

$('.openusersform').live('click',(function(){ 
$('.userform').load('form page.php'); 
});

OK I can get the forms to load in the right div using

$(this).next('.userform').show();
$('.userform').load('form page.php');

but it’s very ugly (I think) and I can only every get the first form to process properly.

It is laid out like (ul, li etc.) this so I can have each loaded form aligned under the relevant li.

But I think there has to be a better way as I do not seem to get any if(){} statements working to process the forms i.e. if(form1){ $.ajax etc } if (form2) {more ajax}

Suggestions please – 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-14T15:08:26+00:00Added an answer on May 14, 2026 at 3:08 pm

    I think you want to load it into the adjacent div, so, like this?

    $('.openuserform').live('click', function(){
        // http://api.jquery.com/siblings/
        $(this).siblings('.userform').load('form-page.php'); 
    });
    

    This is assuming this markup:

    <ul>
    <li><div class="openuserform" >Info</div> <div class="userform"></div></li>
    <li><div class="openuserform" >Appearence</div> <div class="userform"></div></li>
    <li><div class="openuserform" >Pages</div> <div class="userform"></div></li>
    <li><div class="openuserform" >Services</div> <div class="userform"></div></li>
    <li><div class="openuserform" >Community</div> <div class="userform"></div></li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know SQL well but I must be missing something really dumb here. This
This question must be really basic, but if you have any pointers I would
This must be really obvious, but how do I make a winsock listen to
This has been annoying me for a while yet the solution must be really
I know there must be a really simple answer to this question, but I
I must be missing something really obvious. I'm quite new to C# but have
I must admit that I don't really know if this is the right place
i'm sure this must be really simple or i'm missing the point, but how
This must be a really stupid question, but I'm still very green when it
Ok, I must be dumb cause I've already read this: http://www.csharp411.com/net-assembly-faq-part-3-strong-names-and-signing/ And I still

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.