ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Javascript onChange form help!

August 08, 2012 8:07pm

Subscribe [1]
  • #1 / Aug 08, 2012 8:07pm

    Melissa Dawn

    14 posts

    I’m trying to create a form where the user selects 2 options from dropdown menus, inputs a quantity, and has a price update each time those items are changed.  It’s for ordering photographs.  Here is an example:

    Select Print Size: 2x3 / 4x6 / 8x10
    Select Print Style: Colour / Black & White
    Input Quantity

    Each time a change occurs, the database needs to be queried for the entry that includes the selected parameters and update a price box.  I have an entry with a price for every print option (ex. 2x3 colour = $1.00; 2x3 black & white = $1.25, etc).

    Can anyone give me a general framework for the jquery/ajax that is needed to make this happen? 

    I’m so bad at javascript…

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases