1

Hopefully a straight forward one:

I would like to write some javascript code to receive multiple inputs for multiple variables from the user. A bit like a prompt but for three options (so kind of like 3 prompts on one box).

Suggestions for the best way of going about this?

2
  • 1
    That would need to be based on a custom HTML form, jqueryui option; jqueryui.com/demos/dialog/#modal-form Commented Aug 8, 2012 at 13:54
  • Thank you, could you give me an idea on how to code this in javascript? I'm a beginner! Commented Aug 9, 2012 at 13:58

1 Answer 1

2

Create a form with necessary fields and place a JavaScript handler on its "submit" button.

Either create it in HTML and query elements by their ids or create directly with DOM methods from JS - you'll have direct references to elements from beginning.

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

1 Comment

Thank you, could you give me an idea on how to code this in javascript? I'm a beginner!

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.