JSFiddle - React, Tailwind, and code Playground
HTML
{"fileContent":{"identifier":"R-3ARIT0061A","title":"Arithmetic","stylesheet":{"href":"template1.css"},"responseDeclaration":{"identifier":"RESPONSE","cardinality":"single","baseType":"identifier","correctResponse":{"value":["A"]},"cardinalityType":"radio"},"outcomeDeclaration":{"identifier":"SCORE","cardinality":"single","baseType":"integer","defaultValue":{"value":"0"}},"itemBody":{"text":["Choose the best answer. Use the paper you were given for scratchwork."],"choiceInteraction":{"responseIdentifier":"RESPONSE","maxChoices":"1","shuffle":"false","prompt":"Jane's boss offered her a 7% raise. If she currently earns <i>x</i> dollars, which of the following fractions shows the amount, in dollars, of her raise?\n\t\t\t","simpleChoice":[{"identifier":"A","choiceValue":["<span class=\"math\">\\frac{{7x}}{{100}}</span>"]},{"identifier":"B","choiceValue":["<span class=\"math\">\\frac{{x}}{{7}}</span>"]},{"identifier":"C","choiceValue":["<span class=\"math\">\\frac{{7x}}{{10}}</span>"]},{"identifier":"D","choiceValue":["<span class=\"math\">\\frac{{7}}{{10x}}</span>"]}]}},"responseProcessing":{"template":"rptemplates/match_correct"}}}
JavaScript
$('span.math').each(function(){
var el = $(this);
var textOri = el.html();
$(document).on('click', el.find('.more'), function() {
el.html(textOri);
});
});