Skip to content
Advertisement

Replace a string of text from the dom with PHP

JavaScript

I am trying to access the value of 6200° from the dom and then replace it with new text.

For example I would want to replace 6200 with 8500.

This is what the code I have been using after doing some searching but still very new to php and cant get the value.

$kelvin2700 = find(‘span[class=”.options_958_1_label”]’);

Advertisement

Answer

If I understand your correctly, something like this should get you in the right direction:

JavaScript

Output:

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement