Chargebee/Divi Pricing Table Example
Service 1
£19/month
- Example Feature 1
- Example Feature 2
- Example Feature 3
- Example Feature 4
Service 2
£24/month
- Example Feature 1
- Example Feature 2
- Example Feature 3
- Example Feature 4
Sample jQuery attr() Methods
jQuery(document).ready(function() {
// Add Chargebee checkout data type and create undefined button URL on all Divi pricing table buttons
jQuery(".et_pb_pricing_table_button").attr({
"data-cb-type": "checkout",
href: "javascript:void(0)"
});
// Add Chargebee plan ID to first pricing table button
jQuery(".et_pb_pricing_table_0 .et_pb_pricing_table_button").attr(
"data-cb-plan-id",
"my-chargebee-plan-id---1"
);
// Add Chargebee plan ID to second pricing table button
jQuery(".et_pb_pricing_table_1 .et_pb_pricing_table_button").attr(
"data-cb-plan-id",
"my-chargebee-plan-id---2"
);
});