use react dom with onchange event code example Example: how to add css for ::before event in jquery how to add css for ::before event in jquery