I’ve tried to make A input text box & an output text box with a convert button where, if someone clicks the convert button, the input must be displayed in the output box with some change. but it didn’t work.
For example,
If the input is “something“
The output should be “@@:{something}0“
that is , input value must be present within the characters i specify.
Can someone get me the code for this?
Here’s my code so far:
function ConvertText() {
document.form1.outstring.value = document.form1.instring.value.to@@{
instring.value}0();
}
<form name="form1" method="post"> <input name="instring" type="text" value="" size="50">
<input type="button" name="Convert" value="Convert" onClick="ConvertText();">
<input name="outstring" type="text" value="" size="50">
</form>
Without spilling all the code. Here is some JavaScript of how to get the value of an input field and make some modifications. And then how to set that string to the value of the output field.
In your html
In your javascript (The event is not included)
And you can append some stuff to that string.
And.. heres what you want.
Hope this helps, let me know if you have trouble.