Jump to content

New to javascript Help Please.

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Pcm

Pcm

    Newbie

  • Members
  • Pip
  • 5 posts
Hi Guys!

I am new to javascript and I'm not exactly sure how to use javascript for a "add another" button on a form that after a user has filled out the form and clicks this button it will display the item they just finished entering and below that display the same form but blank where they can fill in the form again but with different inputs.

So this is what I have for the form fields for example:

Title:
Name:
Copy:

So when the add another button is clicked, it will store the previous entry but then refresh the form page with blank fields to be able to add another entry for the title, name, and copy?

I haven't a clue how to go about doing this... any help wold be greatly appreciated.


Thanks!!!

#2
Xav

Xav

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 13,118 posts
If you haven't done so already, put the input fields inside a "form" tag (<form>). You can clear the form's fields using a "reset" input type. To store the data, you need to learn how to program in PHP or ASP. This is a big task, but there is plenty of helpful info available at PHP Tutorial. Good luck!
Jordan said:

Good members, like yourself, stick around and post for ages to come!
Mr. Xav | Blog | Forums