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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T18:15:25+00:00 2026-05-24T18:15:25+00:00

You can find my jQuery in this fiddle http://jsfiddle.net/qSkZW/9/ where the value changes based

  • 0

You can find my jQuery in this fiddle http://jsfiddle.net/qSkZW/9/ where the value changes based on your dropdown selection.

What I need is to multiply the selected quantity with a PHP variable. For example when$price = '10'; and you select 3 for quantity, you get an output of 30.

Also, how can I pass the result to display it in the next page ?

Thank you.

What I am trying to clone is the Your Purchase system found here https://www.groupon.com/deals/pizza-delight/confirmation?ms=false&pledge_id=538463 that you add the quantity and you get the final price.

  • 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-24T18:15:25+00:00Added an answer on May 24, 2026 at 6:15 pm

    Just output the integer directly into the script using php:

    $("#quantity").change(function () {
        var price = parseInt($(this).val(), 10)*<?php echo $price; ?>
        $("#here").text(price);
    }).change();
    

    Using PHP 5.4 or short tags enabled:

    var price = parseInt($(this).val(), 10)*<?=$price?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using http://www.appelsiini.net/2010/jquery-chained-selects for a project. You can find the source here https://github.com/tuupola/jquery_chained this
http://jsfiddle.net/motocomdigital/7fyvn/1/ Hello, this is a question I'm really struggling to find an answer for.
I can't find any solution to get this jquery events to work. $(window).one('click',function(){ console.log('hide
I'm surprised I can't find a clear answer to this. So, in jQuery, you
Can someone explain why this won't work? jQuery('.right-et-tooltip').delay(800).mouseout(function(){ jQuery(this).find('.right-et-tooltip-box').animate({ opacity: 'hide', left: '-100px' },
http://jsfiddle.net/rgbjoy/q9VGh/ - As you can see, after viewing (1), when you hit next, (2)
How can I find the current page number in jqGrid (using jQuery of course).
I am having trouble getting the jQuery easySlider working. Can anyone find where I
how can I use jquery to find ::123:: , get 123 out(as an id)
I am using the jQuery DataTable plug-in and can not see to find a

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.