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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T05:43:46+00:00 2026-05-29T05:43:46+00:00

I am trying to post an ajax request using jquery var peName = document.getElementById(peName).value;

  • 0

I am trying to post an ajax request using jquery

var peName = document.getElementById("peName").value;
     var peSubName = document.getElementById("peSubName").value;
     var peDesc = document.getElementById("peDesc").value;
     var pePrice = document.getElementById("pePrice").value;
     var peCat = document.getElementById("peCat");   
     var pecatId = peCat.options[peCat.selectedIndex].value;
     var radioActive = getRadioValue("proeActive");
     var radioSpicy = getRadioValue("proeSpicy");
     var radioVeg = getRadioValue("proeVeg");
$.post("/product/saveEditProduct",
            {  
                peId    :   peId,
                pecatId :   pecatId,
                peName  :   peName,
                peSubName  : peSubName,
                peDesc : peDesc,
                pePrice : pePrice,
                radioActive : radioActive,
                radioSpicy : radioSpicy,
                radioVeg : radioVeg,
              },

but i am getting following error in firebug console.

Uncaught TypeError: Illegal invocation
jQuery.extend.param.add         jquery-1.7.1.js:7601
buildParams             jquery-1.7.1.js:7658
buildParams             jquery-1.7.1.js:7653
buildParams             jquery-1.7.1.js:7653
jQuery.extend.param         jquery-1.7.1.js:7621
jQuery.extend.ajax          jquery-1.7.1.js:7467
jQuery.each.jQuery.(anonymous function) jquery-1.7.1.js:7106
editSaveProduct             order-1.0.js:682

I am new to jquery and have no idea what is it?

  • 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-29T05:43:47+00:00Added an answer on May 29, 2026 at 5:43 am

    Ok, so you seem to be missing your function call closure bracket.

    $.post("/product/saveEditProduct",
        {  
            peId    :   peId,
            pecatId :   pecatId,
            peName  :   peName,
            peSubName  : peSubName,
            peDesc : peDesc,
            pePrice : pePrice,
            radioActive : radioActive,
            radioSpicy : radioSpicy,
            radioVeg : radioVeg,
         });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to make a post request via ajax using jQuery (for the BaseCamp
I'm trying to pass an array trough an Ajax POST request using jQuery. I
I'm trying to POST a http request using ajax, but getting a response from
I'm trying to send an ajax request using jquery. From the tutorial, I try
Trying to send POST request on click event using jQuery with no luck. Here
Currently Im trying to do ajax request using jQuery Mobile. I`m trying to use
I am trying to perform an ajax.get using jquery within document.ready . But the
I am trying to post some data with jQuery Ajax, but the parameters in
I'm trying to use jquery.Ajax to post data to an ASP.NET MVC2 action method
I've been trying to get this really simple example of using AJAX with JQuery

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.