About 3,280 results
Open links in new tab
  1. javascript - Is there any way to create prompt with two input

    Aug 1, 2013 · You will have to create a custom overlay dialog. I would advise using a library like jQuery UI to do this. You can then customize whatever is in the popup. You can view a demo of the dialog here. Short of constructing your own using DOM methods and Input elements: No. JavaScript Code. <script> $( "#create-user" ) .button() .click(function() {

  2. How to Prompt User for Multiple Input in JavaScript - Read …

    Sep 2, 2024 · To prompt the user for multiple inputs in JavaScript, you can use a loop with the prompt() method and store the inputs in an array.

  3. How can we add multiple user inputs in a single prompt (in javascript

    It is only possible by asking user to provide multiple data with delimeters e.g. input1 input2 input1,input2. and you can describe the format in prompt box message. The only way to do it would be to have a common separator that you split on. For instance, for …

  4. Window prompt() Method - W3Schools

    The prompt() method displays a dialog box that prompts the user for input. The prompt() method returns the input value if the user clicks "OK", otherwise it returns null.

  5. JavaScript Prompt Multiple Input - TalkersCode.com

    Mar 11, 2024 · In this tutorial we will show you the solution of JavaScript prompt multiple input, sometimes in some specific or say rare cases we have to get value from user in the alert or say from prompt.

  6. javascript - Take multiple inputs from user - Stack Overflow

    Jan 25, 2019 · I want to get user input from user. I have created a function to do that by taking the code from node.js documentation. But I cannot receive multiple user inputs.

  7. Window: prompt() method - Web APIs | MDN - MDN Web Docs

    Feb 20, 2025 · window.prompt() instructs the browser to display a dialog with an optional message prompting the user to input some text, and to wait until the user either submits the text or cancels the dialog.

  8. How to take user input in JavaScript? - GeeksforGeeks

    Aug 13, 2024 · Taking user input allows your applications to be interactive and responsive. Here we will see the approach to take user input in JavaScript, specifically using the prompt method, which is perfect for beginners. Approach: The "prompt" method. The prompt method is part of the JavaScript window object. It displays a dialog box with a message to ...

  9. JavaScript prompt multiple input - EyeHunts

    Aug 22, 2022 · JavaScript prompts multiple input. Simple example code asking the user to provide multiple data with delimiters e.g. input1 input2 input1,input2. and you can describe the format in the prompt box message.

  10. Javascript Prompt() Method - Naukri Code 360

    Sep 30, 2024 · To ask for multiple inputs from the user we can define multiple prompt function calls and then works on each function call return value according to our need. We can also use a loop to iterate over each input and call the prompt function inside the loop.

Refresh