javascript - Change displayed price based on a button click -


really hope can this.

i building site , need able have people display price based on preferred option.

to see mean, please @ link done perfectly: https://swiftype.com/pricing

...when people select monthly or yearly, displayed price in chart beneath changes dynamically , instantly (without page reload).

this need (except 3 option choose, not one). suspect jquery dynamic divs, cannot make happen.

if can help, so grateful.

best wishes, , time. ab.

// make billing period selected tabs work     $(function() {       var $pricingtable = $('#pricing-table');       $('#billing-picker .tab').click(function() {         var $selectedtab = $(this);         var selectedperiod = $selectedtab.data('period-length');         $('.tab').removeclass('selected');         $selectedtab.addclass('selected');         $pricingtable.removeclass().addclass(selectedperiod);       })     }); 

this script selection of button ..


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -