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
Post a Comment