Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Save text-input value checkbox

lem.rar

Posted 04 May 2008 - 12:29 AM

lem.rar

Member

Member

94 posts

Okay, javascript would be prefferable: I would like to make a checkbox that when checked will save the value of an input field. Such as "name".
I just started learning javascript, and I am testing things out, however if you could gimme a script straight-up I would be more than greatful!

Advertisements

Metallica

Posted 04 May 2008 - 03:54 AM

Metallica

Spyware Veteran

GeekU Moderator

31,676 posts

Hi lem.rar,

If I understand correctly you want to have a form where people can select one item and somethjing needs to be done with that.

A few questions:
- will al the fileds have the same name and just a different value.
- should the choice be one and one only (radiobuttons would be easier in such a case)
- will the resulting action be taken on the same page or does the value need to be transporte to the next?
- do you already have an idea how you want it to look? (makes it easier to adapt the script to you specific wishes)

lem.rar

Posted 04 May 2008 - 04:11 AM

lem.rar

Member

Topic Starter

Member

94 posts

1. The value will by defined by the user, specifically "name", the only value I want to be saved.2. A checkbox for on / off, however a radio button would be fine.3. I'm hoping it won't touch the submission...4. Yes, I want it to go beside the name field, right after the input text