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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:23:56+00:00 2026-06-12T09:23:56+00:00

I’m not sure why I’m not getting it. Either way this is frustrating me

  • 0

I’m not sure why I’m not getting it. Either way this is frustrating me beyond belief. I’ve looked through 2 jquery books, web tutorials, and stack overflow posts and i still dont understand.

I am trying to build a search filter bar where a user can select filters and upon clicking “refine result” it modifies the query output.

How do I submit the value of whichever form radio box the user selects using jquery/ajax to a php page which will display results dependent upon the input, without page refresh.

  1. Form–>
  2. user selects radio button value and clicks submit–>
  3. form data gets sent via jquery/ajax to the .php page whose output is to be displayed in without page refresh–>
  4. .php file processes the user input and creates output based on it

I’ve honestly looked through alot of different answers but all of them assume that the reader has a greater basic knowledge of javascript/jquery than I do.

Like, do I have to put the jQuery/ajax in a function that runs “onclick” of my submit button? Or do I just add a .click event handler for my button id?

Can someone explain it all to me assuming I’m a complete jQuery/ajax noob?

  • 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-12T09:23:57+00:00Added an answer on June 12, 2026 at 9:23 am

    You just have to attach your ajax call to the “submit” event that comes from the form when the submit button is clicked :

    $('form').submit(function(e){
        e.preventDefault();
        $('.content').load(this.action+" .content", $(this).serialize(), function(){
            // code to execute after result display if needed
        });
        return false;
    });
    

    I assumed your results are displayed in an element that has the “content” class.

    1. $('form') selects your form, you can personalize it
    2. .submit attach an event handler to the form “submit event
    3. e.preventDefault() and return false prevents the form to be actually submitted
    4. $('.content').load will fill the element with “content” class with the ajax call results
    5. this.action is the URL to submit the form to
    6. " +.content" is here to extract only the result part from the response, instead of the entire html page
    7. $(this).serialize() passes the form fields data to the ajax request
    8. finally the last anonymous function is called after the results are displayed and can be used to trigger some visual effect indicating that the results were updated
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
For some reason, after submitting a string like this Jack’s Spindle from a text
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I am reading a book about Javascript and jQuery and using one of the
I have this code to decode numeric html entities to the UTF8 equivalent character.
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString

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.