codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Javascript question  tbone at 14:28 on Tuesday, August 15, 2006
 

I know this is not that hard, but I am just not getting it. Not a Javascript GURU by any stretch of the imagination.

I have table with three rows. Each row has three text input boxes. If the user enters information in any text boxes of the first row, then the last two rows of text boxes become disabled. If the user enters information in the second row, then rows 1 and 3 become disabled. Basically onSubmit() the user can only submit one row of data.

<form action="" method="post">
<table>
<tr>
<td><input type="text" name="afield1" value=""></td>
<td><input type="text" name="afield2" value=""></td>
<td><input type="text" name="afield3" value=""></td>
</tr>

<tr>
<td><input type="text" name="afield3" value=""></td>
<td><input type="text" name="afield4" value=""></td>
<td><input type="text" name="afield5" value=""></td>
</tr>


<tr>
<td><input type="text" name="afield6" value=""></td>
<td><input type="text" name="afield7" value=""></td>
<td><input type="text" name="afield8" value=""></td>
</tr>

</table>
<input type="submit" value="GO">
</form>










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  problem in servlet
•  Re: installing DB_File on Perl Package Manager(PPM)
•  Re: Pass asp data to a javascript menu tree...
•  reading margins at run-time -- HELP!!!!!
•  Re: Need expertise - converting
•  Dynamic image dimensions
•  Dissolve effect for images using Javascript!
•  Javascript question
•  Re: urgent a j2ee problem


Recent Articles
What is a pointer in C?
Multiple submit buttons with form validation
Understanding Hibernate ORM for Java/J2EE
HTTP screen-scraping and caching
a javascript calculator
A simple way to JTable
Java Native Interface (JNI)
Parsing Dynamic Layouts
MagicGrid
Caching With ASP.Net


© Copyright codetoad.com 2001-2006