0

I have two boxes, the first is the input and the other the output. I want the output box to display the text inputted in the input box, as converted by the javascript function.

I hope that makes sense! For example I have a function to change the letters of inputted text, but don't know how to use it to take what has been inputted and display it in the second box.

7
  • What have you tried? Where is your code? Any errors? What result do you expect ? Commented Jul 9, 2016 at 13:09
  • you need to learn about jquery selector and jquery events first. just google these terms and you will see lots of information. Commented Jul 9, 2016 at 13:11
  • @Deep okay, I probably should study up more on jQuery first, kind of just went into this blindly Commented Jul 9, 2016 at 13:14
  • Do you want to this? Commented Jul 9, 2016 at 13:58
  • @Mohammad, not exactly, I want to input text and have it return an encrypted string. I already have the javascript function written, I just need to implement it somehow Commented Jul 9, 2016 at 14:21

1 Answer 1

1

Your question is unclear, but you can get input value like this: $('#input').val();

Then change it as you need and assign value to your output element like this $('#output').val(yourChangedValue);

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you, I will try this :)
Hi @l-emi if this or any answer has solved your question please consider accepting it by clicking the check-mark. This indicates to the wider community that you've found a solution and gives some reputation to both the answerer and yourself. There is no obligation to do this.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.