I have 2 elements:
<p id="mdn-slice-product-page-display">3 makset 10€ kuus, ilma lisatasudeta. </p>
<p id="mdn-slice-product-page-display">Järelmaks alates 0.98€ / kuu, 0€ lepingutasu. </p>
Created by the same plugin on the same line, so I don't want to edit the plugin.
I found a solution to replace the text in the first one:
jQuery("#mdn-slice-product-page-display").text(jQuery("#mdn-slice-product-page-display").text().replace("makset", "payments"));
jQuery("#mdn-slice-product-page-display").text(jQuery("#mdn-slice-product-page-display").text().replace("kuus, ilma lisatasudeta", "per month, no extra cost"));
I have no idea how to target the second one. This will have to do until the developer fixes their plugin only, so does just need to work.