[Solved] how to find a parent class and its children
Assuming you have the hierarchy as shown in your description and if, for example, you have the Order_Coupon element selected, you can get the coupon amount by the .children method. var amount=$(‘.Order_Coupon’).children().html(); Depending on what you have selected, you may have to use multiple calls of .child to find the coupon_amount element. var amount=$(‘.Order_Left’).children().children().children().html(); However, … Read more