Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Form with array like structure
- From: lists at dwsasia.com (Peter Lauri)
- Subject: [Javascript] Form with array like structure
- Date: Sun Jul 23 15:48:50 2006
Best groupmember,
I have a form that looks something like this:
<form>
<input type="text" name="thename[]"/>
<input type="text" name="thename[]"/>
<input type="text" name="thename[]"/>
</form>
In regular case, I can use document.getElementByName("thename").value to
check the value of it, but how do I do now when one name has several. In PHP
it is treated as an array, but how can I look thru this with JavaScript?
Best regards,
Peter Lauri
- Follow-Ups:
- [Javascript] Form with array like structure
- From: Jonathan Buchanan
- [Javascript] Form with array like structure
- From: Steve Clason
- [Javascript] Form with array like structure
- Prev by Date: [Javascript] Disable left mouse click and drag on images
- Next by Date: [Javascript] Form with array like structure
- Previous by thread: [Javascript] Disable left mouse click and drag on images
- Next by thread: [Javascript] Form with array like structure
- Index(es):