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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T10:21:39+00:00 2026-05-13T10:21:39+00:00

I have used a jquery UI tabs plugin in my page and in one

  • 0

I have used a jquery UI tabs plugin in my page and in one of the tab i have put a form. SO for example , the tab calls a page form.php which has the form tag of html. Now form.php uses ajax and jquery to submit the form. Does this sound feasible.

    $(document).ready(function(){

    $("form#formdata").submit(function() {

            var str = $("#formdata").serialize();
            $.ajax({
            type: "POST",
            url: "submit.php",
            data: $("#formdata").serialize(),
            success: function(msg){
                     alert(msg);
                    }
    });

return false;
});

});

SO the above code comes in my form.php

The form gets submitted but , not via ajax, and am directed to submit.php
I want to reflect the result in my UI tabs itself.

Please suggest..thanks

EDIT : i put preventdefault() and return false , but it did not help..

  • 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-13T10:21:39+00:00Added an answer on May 13, 2026 at 10:21 am

    Finally i got it working.

    This is what i did.

    in my UI tabs code

    <div id="tabs">
                <ul>
                    <li><a href="link.html">Link1</a></li>
                    <li><a href="form.html">Data</a></li>
                </ul>
    </div>
    

    The form.html contained the form details and from there i was using ajax.

    SO to correct it i used the form details on the same page under a div like this

    <div id="tabs">
                    <ul>
                        <li><a href="link.html">Link1</a></li>
                        <li><a href="#form">Data</a></li>
                    </ul>
    
    <div id = "form">
    //form details here
    </div>
    
        </div>
    

    And used the ajax jquery code on this page.

    Thanks to all who replied to my question and special thanks to @cheekysoft

    Hope this comes handy and useful..

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

Sidebar

Related Questions

I have 3 tabs in my Page and I used JQuery UI for tabs.
Using jQuery UI , I have a tabs plugin and within tab 1 gets
I have used JQuery within my asp.net page. JQuery is working fine. I could
can somebody tell me what is jQuery plugin? I have used the jQuery library
I like jQuery and I was wondering if anyone have used a good plugin
I have some onchange events setup in jQuery which are used to populate a
I'm confused as to how to accomplish this. I have a page which, has
I have multiple tabs with different forms and I use Jquery selectBox plugin inside
I am new to JQuery And I have used 2 jQueries in my page.
I have a page with multiple divs, these are used to make tabs with

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.