₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,344,171 members, 8,510,501 topics. Date: Friday, 30 October 2026 at 01:54 PM

Toggle theme

Javascript Programmers: Your Help Is Needed Here Please - Programming - Nairaland

Nairaland Forum › Science/Technology › Programming › Javascript Programmers: Your Help Is Needed Here Please (978 Views)

1 Reply

Javascript Programmers: Your Help Is Needed Here Please by salvationproject(op): 8:37pm On Oct 15, 2019
I can work with HTML, CSS and a bit of JS and PHP.

I started learning c, c++, java and others but i don't like how they work since they are not straight-forward with their interface design like HTML and CSS.

Now, some weeks back, i learnt HTML, CSS and JS can be use in creating applications and as such, i want to focus in this aspect of applications.

cout<<"Enter the number of integers to be calculated:\n";
cin>>n;
for (c = 1; c <= n; c++)
{
cin>>values;
}
With the c++ code above, a user can enter the number of integers to be calculated e.g 4 and input space for 4 integers will be made available to accept the four inputs.
My question is "How can i do this in JS e.g create an HTML form that will accept the number of input field to display and on clicking "next", the number of form field as requested by the user will appear"?

Help pls...
Re: Javascript Programmers: Your Help Is Needed Here Please by kensmoney(m): 7:39pm On Oct 16, 2019
salvationproject:
I can work with HTML, CSS and a bit of JS and PHP.

I started learning c, c++, java and others but i don't like how they work since they are not straight-forward with their interface design like HTML and CSS.

Now, some weeks back, i learnt HTML, CSS and JS can be use in creating applications and as such, i want to focus in this aspect of applications.


With the c++ code above, a user can enter the number of integers to be calculated e.g 4 and input space for 4 integers will be made available to accept the four inputs.
My question is "How can i do this in JS e.g create an HTML form that will accept the number of input field to display and on clicking "next", the number of form field as requested by the user will appear"?

Help pls...
You can use form, <input type=" text " id="num" >
Then, use DOM to get the values like var num =document.getElementByid("num"wink.value; with this u can do what so ever u want. Another option is
Use window object called prompt()
var num = prompt("Please enter a value"wink;
Etc u can still still google it
1 Reply

Django And Flask Users, Your Help Is Needed Please • Mobile Technology: Lets Build A Mobile App With Javascript • Python Programmers Lets Meet Here!!! • 2 • 3 • 4

Code-ignite : Free Weekend Introductory Course To Software Development!! • Critical Tips To Learn Programming Faster Sample • Javascript