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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:59:37+00:00 2026-05-26T20:59:37+00:00

I want to conduct a POST request via jQuery. Say I have four Javascript

  • 0

I want to conduct a POST request via jQuery.

Say I have four Javascript variables: var1,var2,var3,var4 and a endpoint of URL.

How would I POST via jQuery (I would rather not be using Ajax for the sake of this example).

  • 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-26T20:59:37+00:00Added an answer on May 26, 2026 at 8:59 pm

    Put these variables into the form via hidden labels, and submit it.

    If you can place a div in the html with id=”myDivContent”, you could add them there

    var myStr = '<input name="var1" type="hidden" value="' + var1 + '" />';
    myStr += '<input name="var2" type="hidden" value="' + var2 + '" />';
    myStr += '<input name="var3" type="hidden" value="' + var3 + '" />';
    $('#myDivContent').innerHTML = myStr;
    $('form#myForm').submit();
    

    If you just want to create a form on the fly, put these vars in there and make a POST request, then I need to update my answer.

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

Sidebar

Related Questions

I have a website that I want to conduct testing on. All you need
If I want to conduct some database operations on a scheduled basis, I could:
want to have a Hyperlink-Button in a gridView in which I can display a
I want to conduct a stress and performance test on the front-end of my
I have a very nice idea for a kernel patch, and I want to
<form method=post action=sendmail.php name=Email_form> Message ID <input type=text name=message_id /><br/><br/> Aggressive conduct <input type=radio
I have developped a HTTP web service which is queried by smartphone. I want
I want to display an error when a variable have a BLANK value or
I have a Mercurial Repository for a code project and I want to search
Want to clear some concepts about SQL internals. Suppose I have a table as:

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.