Rs.
Dom parent and child relation
var showingcost=$(element).parent('span').parent('div').prev('div').childNodes[0];
showingcost.text(unit);
var showdelarcost=$(element).parent('span').parent('div').prev('div').secondChild('span');
showdelarcost.text(dealer);
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Midhun TpRank #388 · 6.5K reputationPosted Aug 20, 2016, 6:32 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Aug 20, 2016, 9:52 AM EDT