Ok, so I have a form… super-simple, sitting in a table.
I need to make a field in the title-line that will display the “title” of the field you’re typing in. I have 4 rows of fields per line (by 4 or 5 columns) and that’s already too much space, so looking for something that’ll basically display “Title” and “Quantity” (etc) in the title field…
So basically I want it to do this:
[code=html]<tr>
<td colspan=”3″>Section Title</td>
<td colspan=”2″ id=”titlespace”> </td>
</tr>
<tr>
<td><input type=”text” name=”title” /></td>
<td><input type=”text” name=”qty” /></td>
<td><input type=”text” name=”value” /></td>
<td><input type=”text” name=”etc” /></td>
<td><input type=”text” name=”other” /></td>
</tr>
And that continues on for 3 more rows of input-fields ranging from 1 to 5 columns wide… Each of those is a section, and the database will pick how many sections there are, so these will need to have id-specific things with a number in it so that I can change the number with the database.
Anyway, I was thinking some kind of inner-html or show/hide sort of a thing… I don’t know.
Ideally I’d put a function like showcaption(‘Value’) to display “Value” in the “titlespace” cell but I don’t know what to do IN that function or how to apply it to a selected input field…
I hope that makes sense.
Any help would be greatly appreciated.