Board Thread:Support Requests - Getting Started/@comment-37490998-20181214183205

So on a wiki does anyone know how I could do something like:

buying this item for the _______(rd or th) time will cost whatever it would cost

textbox

I would like to know to to program that into a wiki using javascript or css or lua or wikitext.

EDIT:

Thank you everybody for the help. I have figured out how to do it with javascript. A example is right here it is on a test page so I know how to do it now. Thank you all very much! I have recently learned how to use my Javascript and HTML knowledge in fandom so that is how I figured out how to do this(by using document.getElementById('mw-content-text')) The code I used was: //Test-page text box with results: function onClick252{ document.getElementById('mw-content-text').getElementsByClassName("change-this")[0].textContent=    document.getElementById('mw-content-text').getElementsByClassName("input21")[0].value*2; } //make sure to only do it on the test-page: if(mw.config.get('wgPageName')=='Test-page'){ document.getElementById('mw-content-text').innerHTML+=' '; document.getElementById('mw-content-text').innerHTML+='Get Value Times Two ';            document.getElementById('mw-content-text').innerHTML+='1 '; } 